diff options
author | stewart@mysql.com <> | 2005-05-25 12:18:18 +1000 |
---|---|---|
committer | stewart@mysql.com <> | 2005-05-25 12:18:18 +1000 |
commit | 274fee09c9960a31ae9af53b2abdee4743fafcc5 (patch) | |
tree | 6bf05e4d502de4dff73ebb27dd058edf57c918f3 /BUILD | |
parent | e94f4fa8e03b326e2161f2ad926aaafa128b57fe (diff) | |
download | mariadb-git-274fee09c9960a31ae9af53b2abdee4743fafcc5.tar.gz |
BUG#10796 Incorrect check-cpu result for ppc linux gcc
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/check-cpu | 4 |
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="" |