diff options
author | df@pippilotta.erinye.com <> | 2007-03-21 14:58:12 +0100 |
---|---|---|
committer | df@pippilotta.erinye.com <> | 2007-03-21 14:58:12 +0100 |
commit | 4cae191d01b2dcc6037f5819c877e105855552b5 (patch) | |
tree | 709320683bbfa5944140725ad1a5c377922cbc15 /BUILD/check-cpu | |
parent | 6bce4753ad436e7f92ee3496c1c20edc5ebb51ba (diff) | |
parent | 1b84cb44b337df7c464831058e99d60585958022 (diff) | |
download | mariadb-git-4cae191d01b2dcc6037f5819c877e105855552b5.tar.gz |
Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work-26701
into pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build-work-26701
Diffstat (limited to 'BUILD/check-cpu')
-rwxr-xr-x | BUILD/check-cpu | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu index e1001409d15..155ddd6ecde 100755 --- a/BUILD/check-cpu +++ b/BUILD/check-cpu @@ -166,27 +166,23 @@ check_cpu () { # different gcc backends (and versions) have different CPU flags case `gcc -dumpmachine` in i?86-*) - case "$cc_verno" in - 3.4*|3.5*|4.*) - check_cpu_args='-mtune=$cpu_arg -march=$cpu_arg' - ;; - *) - check_cpu_args='-mcpu=$cpu_arg -march=$cpu_arg' - ;; - esac + if test "$cc_verno" -lt "3.4" + then + check_cpu_args='-mcpu=$cpu_arg' + else + check_cpu_args='-mtune=$cpu_arg' + fi ;; ppc-*) check_cpu_args='-mcpu=$cpu_arg -mtune=$cpu_arg' ;; x86_64-*) - case "$cc_verno" in - 3.4*|3.5*|4.*) - check_cpu_args='-mtune=$cpu_arg' - ;; - *) + if test "$cc_verno" -lt "3.4" + then check_cpu_args='-mcpu=$cpu_arg' - ;; - esac + else + check_cpu_args='-mtune=$cpu_arg' + fi ;; *) check_cpu_cflags="" |