summaryrefslogtreecommitdiff
path: root/BUILD/SETUP.sh
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-03-01 17:04:17 +0200
committerunknown <sanja@askmonty.org>2011-03-01 17:04:17 +0200
commitf8a9d13363a8f1eb6ab009bc609f3d61bac63c6b (patch)
tree9881189b67d3b7c4fd5286d77565dfc1e109a282 /BUILD/SETUP.sh
parentb432ceda3df313f47181b5496379c19944f7eaba (diff)
parentc60ad7e6cda53eadb972b314c2448daa9fba2672 (diff)
downloadmariadb-git-f8a9d13363a8f1eb6ab009bc609f3d61bac63c6b.tar.gz
merge
Diffstat (limited to 'BUILD/SETUP.sh')
-rwxr-xr-xBUILD/SETUP.sh3
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 \