BUG#26701 check-cpu compile flags in x86-64 doesn't support gcc < 3.4,

apply suggestion from jocelyn fournier
parent 47efc752
...@@ -179,7 +179,14 @@ check_cpu () { ...@@ -179,7 +179,14 @@ check_cpu () {
check_cpu_args='-mcpu=$cpu_arg -mtune=$cpu_arg' check_cpu_args='-mcpu=$cpu_arg -mtune=$cpu_arg'
;; ;;
x86_64-*) x86_64-*)
check_cpu_args='-mtune=$cpu_arg' case "$cc_verno" in
3.4*|3.5*|4.*)
check_cpu_args='-mtune=$cpu_arg'
;;
*)
check_cpu_args='-mcpu=$cpu_arg'
;;
esac
;; ;;
*) *)
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