bug 423261 - Build failure when gcc was compiled with some option that contains "version", r=ted a1.9=beltzner
authorkairo@kairo.at
Mon, 17 Mar 2008 07:53:47 -0700
changeset 13176 aa574de6a91899b531da46e7c5451d9090014acb
parent 13175 c402d1feb9f94fc377dc6d82743ca496d814fda7
child 13177 1ff4c22702b8781ed05cbc18f540f46cf8d691bc
push idunknown
push userunknown
push dateunknown
reviewersted
bugs423261
milestone1.9b5pre
bug 423261 - Build failure when gcc was compiled with some option that contains "version", r=ted a1.9=beltzner
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1740,17 +1740,17 @@ case "$target" in
     fi
     if test -z "$GNU_CXX"; then
       MIPSPRO_CXX=1
     fi
     ;;
 
 *-*linux*)
     if test "$GNU_CC"; then
-        GCC_VERSION=`$CC -v 2>&1 | awk '/version/ { print $3 }'`
+        GCC_VERSION=`$CC -v 2>&1 | awk '/^gcc version/ { print $3 }'`
         case $GCC_VERSION in
         4.1.*|4.2.*)
             # -Os is broken on gcc 4.1.x and 4.2.x, we need to tweak it to get good results.
             MOZ_OPTIMIZE_SIZE_TWEAK="-finline-limit=50"
         esac
     fi
 
     TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'