diff options
author | unknown <sanja@askmonty.org> | 2011-03-01 17:04:17 +0200 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2011-03-01 17:04:17 +0200 |
commit | f8a9d13363a8f1eb6ab009bc609f3d61bac63c6b (patch) | |
tree | 9881189b67d3b7c4fd5286d77565dfc1e109a282 /BUILD/SETUP.sh | |
parent | b432ceda3df313f47181b5496379c19944f7eaba (diff) | |
parent | c60ad7e6cda53eadb972b314c2448daa9fba2672 (diff) | |
download | mariadb-git-f8a9d13363a8f1eb6ab009bc609f3d61bac63c6b.tar.gz |
merge
Diffstat (limited to 'BUILD/SETUP.sh')
-rwxr-xr-x | BUILD/SETUP.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh index 7a05d80f531..303766f3a78 100755 --- a/BUILD/SETUP.sh +++ b/BUILD/SETUP.sh @@ -214,7 +214,8 @@ fi # because it is allowed there without -O # if test `$CC -v 2>&1 | tail -1 | sed 's/ .*$//'` = 'gcc' ; then - GCCVERSION=`cc -v 2>&1 | tail -1 | sed 's/^\w\w* \w\w* //' | sed 's/ .*$//'` + GCCVERSION=`$CC -v 2>&1 | tail -1 | \ + sed 's/^[a-zA-Z][a-zA-Z]* [a-zA-Z][a-zA-Z]* //' | sed 's/ .*$//'` GCCV1=`echo $GCCVERSION | sed 's/\..*$//'` GCCV2=`echo $GCCVERSION | sed 's/[0-9][0-9]*\.//'|sed 's/\..*$//'` if test '(' "$GCCV1" -gt '4' ')' -o \ |