jdk/make/common/Defs-linux.gmk
changeset 9361 1051c04ab0b1
parent 9350 799e0bb89242
child 9371 ac4c4dd63f1a
--- a/jdk/make/common/Defs-linux.gmk	Wed Jul 05 17:42:19 2017 +0200
+++ b/jdk/make/common/Defs-linux.gmk	Wed Apr 27 19:23:13 2011 -0700
@@ -251,9 +251,8 @@
 # statically link libgcc but will print a warning with the flag. We don't 
 # want the warning, so check gcc version first.
 #
-CC_VER_MAJOR := $(shell $(CC) -dumpversion | $(SED) 's/egcs-//' | $(CUT) -d'.' -f1)
-ifeq ("$(CC_VER_MAJOR)", "3")
-OTHER_LDFLAGS  += -static-libgcc
+ifeq ($(CC_MAJORVER),3)
+  OTHER_LDFLAGS  += -static-libgcc
 endif
 
 # Automatic precompiled header option to use (if COMPILE_APPROACH=batch)