jdk/make/common/Defs-linux.gmk
changeset 9371 ac4c4dd63f1a
parent 9367 7ed49dc79ebc
parent 9350 799e0bb89242
child 10603 c315c8424ce2
--- a/jdk/make/common/Defs-linux.gmk	Wed Apr 27 23:28:51 2011 -0700
+++ b/jdk/make/common/Defs-linux.gmk	Thu Apr 28 14:30:28 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)