summaryrefslogtreecommitdiff
path: root/BUILD/check-cpu
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2008-08-18 13:33:00 -0400
committerChad MILLER <chad@mysql.com>2008-08-18 13:33:00 -0400
commitc6bbad9e507061eeecf775a68d68c1437b6aeb68 (patch)
treeb8f8217f04850021fd34fdbdc352abbc4aae9ec6 /BUILD/check-cpu
parent10ae3ae1c8f7fe3a91caf4e1eeeefe34a9343b54 (diff)
parentd4e3b42345468903ac3ac7c0a79f583781767db9 (diff)
downloadmariadb-git-c6bbad9e507061eeecf775a68d68c1437b6aeb68.tar.gz
Merge from 5.0-bugteam local.
Diffstat (limited to 'BUILD/check-cpu')
-rwxr-xr-xBUILD/check-cpu2
1 files changed, 1 insertions, 1 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index 45dd8404f0d..33bf857b845 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -176,7 +176,7 @@ check_cpu () {
fi
cc_ver=`$cc --version | sed 1q`
- cc_verno=`echo $cc_ver | sed -e 's/^.*gcc/gcc/g; s/[^0-9. ]//g; s/^ *//g; s/ .*//g'`
+ cc_verno=`echo $cc_ver | sed -e 's/^.*(GCC)//g; s/[^0-9. ]//g; s/^ *//g; s/ .*//g'`
set -- `echo $cc_verno | tr '.' ' '`
cc_major=$1
cc_minor=$2