[vlc-commits] configure: tune for core2 when compiling in 64bit mode on Darwin
Felix Paul Kühne
git at videolan.org
Wed Mar 9 18:58:14 CET 2011
vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Mar 9 18:57:24 2011 +0100| [ca5c8120724aff51bbbc775f50b9e24a33f102d6] | committer: Felix Paul Kühne
configure: tune for core2 when compiling in 64bit mode on Darwin
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=ca5c8120724aff51bbbc775f50b9e24a33f102d6
---
configure.ac | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4b959b2..1b80d08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1515,8 +1515,10 @@ if test -n "${with_tuning}"; then
CFLAGS_TUNING="-mtune=${with_tuning}"
fi
else
- if test "${SYS}" = "darwin" -a "${host_cpu}" != "powerpc"; then
+ if test "${SYS}" = "darwin" -a "${host_cpu}" = "i686"; then
CFLAGS_TUNING="-march=prescott -mtune=generic"
+ elif test "${SYS}" = "darwin" -a "${host_cpu}" = "x86_64"; then
+ CFLAGS_TUNING="-march=core2 -mtune=core2"
elif test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "i386"; then
CFLAGS_TUNING="-mtune=pentium2"
elif test "${host_cpu}" = "x86_64"; then
More information about the vlc-commits
mailing list