Commit 92770fd0 authored by Felix Paul Kühne's avatar Felix Paul Kühne

extras/macosx: added the optimization flags removed from configure.ac

These can be triggered by setting the ARCH variable respectively, which will be done by the OS X build script
parent 37754905
#!/bin/sh #!/bin/sh
CFLAGS=${CFLAGS}
LDFLAGS=${LDFLAGS}
case "${ARCH}" in
x86_64*)
CFLAGS="${CFLAGS} -m64 -march=core2 -mtune=core2"
LDFLAGS="${LDFLAGS} -m64"
;;
ppc)
CFLAGS="${CFLAGS} -arch ppc -mtune=G4"
LDFLAGS="${LDFLAGS} -arch ppc"
;;
*x86*)
CFLAGS="${CFLAGS} -m32 -march=prescott -mtune=generic"
LDFLAGS="${LDFLAGS} -m32"
;;
esac
OPTIONS=" OPTIONS="
--prefix=`pwd`/vlc_install_dir --prefix=`pwd`/vlc_install_dir
--enable-macosx --enable-macosx
...@@ -25,4 +43,7 @@ OPTIONS=" ...@@ -25,4 +43,7 @@ OPTIONS="
--disable-samplerate --disable-samplerate
" "
export CFLAGS
export LDFLAGS
sh "$(dirname $0)"/../../../configure ${OPTIONS} $* sh "$(dirname $0)"/../../../configure ${OPTIONS} $*
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