summaryrefslogtreecommitdiff
path: root/BUILD/check-cpu
diff options
context:
space:
mode:
authorunknown <df@pippilotta.erinye.com>2007-03-01 20:58:51 +0100
committerunknown <df@pippilotta.erinye.com>2007-03-01 20:58:51 +0100
commitf8d58c1d1f89a2147466d11feeb54ca3c217c077 (patch)
tree056ce606528fd275837cda4874497eab0e14d922 /BUILD/check-cpu
parent858ea1bf0537984361cb11820801cc9737c7baaa (diff)
downloadmariadb-git-f8d58c1d1f89a2147466d11feeb54ca3c217c077.tar.gz
BUG#26701 check-cpu compile flags in x86-64 doesn't support gcc < 3.4,
apply suggestion from jocelyn fournier
Diffstat (limited to 'BUILD/check-cpu')
-rwxr-xr-xBUILD/check-cpu9
1 files changed, 8 insertions, 1 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index 55f4e62327b..8c41b79a126 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -179,7 +179,14 @@ check_cpu () {
check_cpu_args='-mcpu=$cpu_arg -mtune=$cpu_arg'
;;
x86_64-*)
- check_cpu_args='-mtune=$cpu_arg'
+ case "$cc_verno" in
+ 3.4*|3.5*|4.*)
+ check_cpu_args='-mtune=$cpu_arg'
+ ;;
+ *)
+ check_cpu_args='-mcpu=$cpu_arg'
+ ;;
+ esac
;;
*)
check_cpu_cflags=""