summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <stewart@mysql.com>2005-05-25 12:18:18 +1000
committerunknown <stewart@mysql.com>2005-05-25 12:18:18 +1000
commit5b77d9b8f3ff262fffca273781e74a9a10f345bf (patch)
tree6bf05e4d502de4dff73ebb27dd058edf57c918f3 /BUILD
parente07f6ebf7fe5c35965d03485226d0c5eaff65966 (diff)
downloadmariadb-git-5b77d9b8f3ff262fffca273781e74a9a10f345bf.tar.gz
BUG#10796 Incorrect check-cpu result for ppc linux gcc
BUILD/check-cpu: Add no_march variable to indicate that this architecture doesn't support the -march flag to GCC
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu4
1 files changed, 4 insertions, 0 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index 7619224314b..0283c669fb2 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -72,6 +72,7 @@ case "$cpu_family--$model_name" in
;;
*ppc)
cpu_flag="powerpc";
+ no_march=1;
;;
*)
cpu_flag="";
@@ -106,6 +107,9 @@ case "$cc_ver--$cc_verno" in
cpu_flag="$cpu_flag_old"
fi
check_cpu_cflags="-mcpu=$cpu_flag -march=$cpu_flag"
+ if test -n "$no_march"; then
+ check_cpu_cflags="-mcpu=$cpu_flag"
+ fi
;;
*)
check_cpu_cflags=""