Commit 0a55d7f0 authored by Felix Paul Kühne's avatar Felix Paul Kühne

contribs/osx: compilation fixes for libtool on PPC and FFmpeg in general

parent afc47e44
...@@ -156,13 +156,14 @@ case $HOST in ...@@ -156,13 +156,14 @@ case $HOST in
echo "HAVE_DARWIN_9 = 1" >> config.mak echo "HAVE_DARWIN_9 = 1" >> config.mak
HAVE_DARWIN_9=1 HAVE_DARWIN_9=1
CFLAGS_TUNING=" -arch ppc -mtune=G4" CFLAGS_TUNING=" -arch ppc -mtune=G4"
EXTRA_CFLAGS=" -D\${ENVP} -mmacosx-version-min=\${SDK_TARGET}" EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
if test -z "$CONTRIBS_CC_LLVM"; then if test -z "$CONTRIBS_CC_LLVM"; then
CC="gcc -isysroot \${MACOSX_SDK}" CC="gcc"
CXX="g++ -isysroot \${MACOSX_SDK}" CXX="g++"
else else
CC="/Developer/usr/llvm-gcc-4.2/bin/powerpc-apple-darwin9-llvm-gcc-4.2 -isysroot \${MACOSX_SDK}" CC="/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2"
CXX="/Developer/usr/llvm-gcc-4.2/bin/powerpc-apple-darwin9-llvm-g++-4.2 -isysroot \${MACOSX_SDK}" CXX="/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2"
fi fi
LD="ld -arch ppc -syslibroot \${MACOSX_SDK}" LD="ld -arch ppc -syslibroot \${MACOSX_SDK}"
echo "PATH = /bin:/usr/bin:/usr/local/bin:" >> config.mak echo "PATH = /bin:/usr/bin:/usr/local/bin:" >> config.mak
...@@ -199,11 +200,11 @@ case $HOST in ...@@ -199,11 +200,11 @@ case $HOST in
EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
if test -z "$CONTRIBS_CC_LLVM"; then if test -z "$CONTRIBS_CC_LLVM"; then
CC="gcc -isysroot \${MACOSX_SDK}" CC="gcc"
CXX="g++ -isysroot \${MACOSX_SDK}" CXX="g++"
else else
CC="/Developer/usr/llvm-gcc-4.2/bin/i686-apple-darwin9-llvm-gcc-4.2 -isysroot \${MACOSX_SDK}" CC="/Developer/usr/llvm-gcc-4.2/bin/i686-apple-darwin9-llvm-gcc-4.2"
CXX="/Developer/usr/llvm-gcc-4.2/bin/i686-apple-darwin9-llvm-g++-4.2 -isysroot \${MACOSX_SDK}" CXX="/Developer/usr/llvm-gcc-4.2/bin/i686-apple-darwin9-llvm-g++-4.2"
fi fi
echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak
cat src/Distributions/darwin.mak >> distro.mak cat src/Distributions/darwin.mak >> distro.mak
......
...@@ -149,6 +149,7 @@ endif ...@@ -149,6 +149,7 @@ endif
ifdef HAVE_DARWIN_OS ifdef HAVE_DARWIN_OS
X264CONF += --enable-pic X264CONF += --enable-pic
FFMPEGCONF += --cc=$(CC)
FFMPEGCONF += --arch=$(ARCH) FFMPEGCONF += --arch=$(ARCH)
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_DARWIN_OS_ON_INTEL
FFMPEG_CFLAGS += -DHAVE_LRINTF FFMPEG_CFLAGS += -DHAVE_LRINTF
......
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