diff options
author | unknown <df@pippilotta.erinye.com> | 2007-03-01 20:58:51 +0100 |
---|---|---|
committer | unknown <df@pippilotta.erinye.com> | 2007-03-01 20:58:51 +0100 |
commit | f8d58c1d1f89a2147466d11feeb54ca3c217c077 (patch) | |
tree | 056ce606528fd275837cda4874497eab0e14d922 /BUILD/check-cpu | |
parent | 858ea1bf0537984361cb11820801cc9737c7baaa (diff) | |
download | mariadb-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-x | BUILD/check-cpu | 9 |
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="" |