BUG#10796 Incorrect check-cpu result for ppc linux gcc

This commit is contained in:
stewart@mysql.com 2005-05-25 12:18:18 +10:00
parent e94f4fa8e0
commit 274fee09c9

View File

@ -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=""