bug 423261 - Build failure when gcc was compiled with some option that contains "version", r=ted a1.9=beltzner

This commit is contained in:
kairo@kairo.at 2008-03-17 07:53:47 -07:00
parent 28855e0065
commit 4137c96cb6

View File

@ -1745,7 +1745,7 @@ case "$target" in
*-*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.