diff options
author | Chad MILLER <chad@mysql.com> | 2008-08-18 13:28:46 -0400 |
---|---|---|
committer | Chad MILLER <chad@mysql.com> | 2008-08-18 13:28:46 -0400 |
commit | d4e3b42345468903ac3ac7c0a79f583781767db9 (patch) | |
tree | c716b8832db59dcb6f87bb2c5463c0e6976a09cb /BUILD | |
parent | 94a643690c6e6c88d60eab4d03bbfae7af5dd26f (diff) | |
download | mariadb-git-d4e3b42345468903ac3ac7c0a79f583781767db9.tar.gz |
Bug#27526: BUILD/check_cpu misbehaving on Debian testing
more clever gcc version checking.
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/check-cpu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu index 48a5b5371e3..4974d3f4ecc 100755 --- a/BUILD/check-cpu +++ b/BUILD/check-cpu @@ -169,7 +169,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 |