changeset 31203:cf8a807cf4af

Fix compilation if the compiler does not support -march=amdfam10
author reimar
date Sat, 29 May 2010 14:44:02 +0000
parents b0618e2021e9
children 5c4a513ca9eb
files configure
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat May 29 10:43:51 2010 +0000
+++ b/configure	Sat May 29 14:44:02 2010 +0000
@@ -1916,6 +1916,9 @@
     if test $cc_vendor != "intel" ; then
       cc_check -march=native && proc=native
     fi
+    if test "$proc" = "amdfam10"; then
+      cc_check -march=$proc $cpuopt=$proc || proc=k8
+    fi
     if test "$proc" = "k8"; then
       cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp
     fi