Commit e4ba74a8 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Tune MacIntel for prescott. Also add tuning to contrib (prescott vs. G4)wq

parent f68336d9
...@@ -1390,7 +1390,9 @@ if test -n "${with_tuning}"; then ...@@ -1390,7 +1390,9 @@ if test -n "${with_tuning}"; then
CFLAGS_TUNING="-mtune=${with_tuning}" CFLAGS_TUNING="-mtune=${with_tuning}"
fi fi
else else
if test "${target_cpu}" = "i686" -o "${target_cpu}" = "i586" -o "${target_cpu}" = "i486" -o "${target_cpu}" = "i386"; then if test "${SYS}" = "darwin" -a "${target_cpu}" = "i686"; then
CFLAGS_TUNING="-march=pentium-m -mtune=prescott"
elif test "${target_cpu}" = "i686" -o "${target_cpu}" = "i586" -o "${target_cpu}" = "i486" -o "${target_cpu}" = "i386"; then
CFLAGS_TUNING="-mtune=pentium2" CFLAGS_TUNING="-mtune=pentium2"
elif test "${target_cpu}" = "x86_64"; then elif test "${target_cpu}" = "x86_64"; then
CFLAGS_TUNING="-mtune=athlon64" CFLAGS_TUNING="-mtune=athlon64"
......
...@@ -68,6 +68,7 @@ case $HOST in ...@@ -68,6 +68,7 @@ case $HOST in
echo "HAVE_DARWIN_OS = 1" >> config.mak echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.3.9.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.3.9.sdk" >> config.mak
CFLAGS_TUNING=" -mtune=G4"
#EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK}" #EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK}"
#EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" #EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak
...@@ -78,6 +79,7 @@ case $HOST in ...@@ -78,6 +79,7 @@ case $HOST in
echo "HAVE_DARWIN_OS = 1" >> config.mak echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.3.9.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.3.9.sdk" >> config.mak
CFLAGS_TUNING=" -march=pentium-m -mtune=prescott"
#EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK}" #EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK}"
#EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" #EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak
...@@ -139,7 +141,7 @@ echo "CXX = ${CXX}" >> config.mak ...@@ -139,7 +141,7 @@ echo "CXX = ${CXX}" >> config.mak
echo "LD = ${LD}" >> config.mak echo "LD = ${LD}" >> config.mak
echo "RANLIB = ${RANLIB}" >> config.mak echo "RANLIB = ${RANLIB}" >> config.mak
echo "AR = ${AR}" >> config.mak echo "AR = ${AR}" >> config.mak
echo "EXTRA_CFLAGS = ${EXTRA_CFLAGS}" >> config.mak echo "EXTRA_CFLAGS = ${CFLAGS_TUNING} ${EXTRA_CFLAGS}" >> config.mak
echo "EXTRA_CPPFLAGS = ${EXTRA_CPPFLAGS} -I${PREFIX}/include" >> config.mak echo "EXTRA_CPPFLAGS = ${EXTRA_CPPFLAGS} -I${PREFIX}/include" >> config.mak
echo "EXTRA_LDFLAGS = ${EXTRA_LDFLAGS}" >> config.mak echo "EXTRA_LDFLAGS = ${EXTRA_LDFLAGS}" >> config.mak
echo "EXTRA_PATH = ${EXTRA_PATH}" >> config.mak echo "EXTRA_PATH = ${EXTRA_PATH}" >> config.mak
......
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