Commit 431ef177 authored by unknown's avatar unknown

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
parent 5f9ab414
...@@ -72,6 +72,7 @@ case "$cpu_family--$model_name" in ...@@ -72,6 +72,7 @@ case "$cpu_family--$model_name" in
;; ;;
*ppc) *ppc)
cpu_flag="powerpc"; cpu_flag="powerpc";
no_march=1;
;; ;;
*) *)
cpu_flag=""; cpu_flag="";
...@@ -106,6 +107,9 @@ case "$cc_ver--$cc_verno" in ...@@ -106,6 +107,9 @@ case "$cc_ver--$cc_verno" in
cpu_flag="$cpu_flag_old" cpu_flag="$cpu_flag_old"
fi fi
check_cpu_cflags="-mcpu=$cpu_flag -march=$cpu_flag" 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="" check_cpu_cflags=""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment