summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authordf@pippilotta.erinye.com <>2007-03-21 15:00:55 +0100
committerdf@pippilotta.erinye.com <>2007-03-21 15:00:55 +0100
commit90da5ed40fc50d3e11f008d740f7675439000cbb (patch)
tree95857bc98ead0e76f342d1a387fa594e82bcecc6 /BUILD
parentf6c30190b3df18d7e8274b180231c41580677a71 (diff)
parent4cae191d01b2dcc6037f5819c877e105855552b5 (diff)
downloadmariadb-git-90da5ed40fc50d3e11f008d740f7675439000cbb.tar.gz
Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build-work-26701
into pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu21
1 files changed, 12 insertions, 9 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index 24b76c7198d..4cb43b141d2 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -170,20 +170,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-*)
- check_cpu_args='-mtune=$cpu_arg'
+ if test "$cc_verno" -lt "3.4"
+ then
+ check_cpu_args='-mcpu=$cpu_arg'
+ else
+ check_cpu_args='-mtune=$cpu_arg'
+ fi
;;
*)
check_cpu_cflags=""