summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandall2009-03-16 12:09:02 -0700
committerEric Sandall2009-03-16 12:09:02 -0700
commit2d9db7c5f066d330b94d5c324dc6a8835de1c79d (patch)
treebd02bc35c13fc38962616e96106680356afa25c0
parent8f29788d595401c5574782132fd3026ef622aaf4 (diff)
Make core2_{32,64} future proof (e.g. for gcc 4.4), thanks Jakastable-0.8.0
This does mean that if you are using a compiler version which we do not check for, that Sorcery will use the GCC 4.3+ -march=core2 flag and not fail back to -march=nocona (which your non-detected compiler version probably doesn't have anyways).
-rwxr-xr-x32/ia32/intel/em64t/core2_326
-rwxr-xr-x64/x86_64/intel/em64t/core2_646
2 files changed, 4 insertions, 8 deletions
diff --git a/32/ia32/intel/em64t/core2_32 b/32/ia32/intel/em64t/core2_32
index 882f87a..a8f6306 100755
--- a/32/ia32/intel/em64t/core2_32
+++ b/32/ia32/intel/em64t/core2_32
@@ -1,13 +1,11 @@
CPUNAME="Intel Core 2 with EM64T, 32bit mode"
-if use_gcc 4.3. ; then
- CFLAGS="-march=core2 -m32"
-elif use_gcc 3.3. ; then
+if use_gcc 3.3. || use_gcc 3.4. || use_gcc 4.0. || use_gcc 4.1. || use_gcc 4.2.; then
CFLAGS="-march=nocona -m32"
elif use_gcc2 ; then
CFLAGS="-march=i686"
else
- CFLAGS="-march=nocona -m32"
+ CFLAGS="-march=core2 -m32"
fi
HOST="i686-pc-linux-gnu"
diff --git a/64/x86_64/intel/em64t/core2_64 b/64/x86_64/intel/em64t/core2_64
index f4ffaac..53d2f9f 100755
--- a/64/x86_64/intel/em64t/core2_64
+++ b/64/x86_64/intel/em64t/core2_64
@@ -1,13 +1,11 @@
CPUNAME="Intel Core 2 with EM64T"
-if use_gcc 4.3. ; then
- CFLAGS="-march=core2 -fPIC -DPIC"
-elif use_gcc 3.3. ; then
+if use_gcc 3.3. || use_gcc 3.4. || use_gcc 4.0. || use_gcc 4.1. || use_gcc 4.2.; then
CFLAGS="-march=nocona -fPIC -DPIC"
elif use_gcc2 ; then
CFLAGS="-march=i686"
else
- CFLAGS="-march=nocona -fPIC -DPIC"
+ CFLAGS="-march=core2 -fPIC -DPIC"
fi
HOST="x86_64-pc-linux-gnu"