--- 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)