[vlc-devel] commit: contrib: prevent some rare linking errors on OSX by providing the minimal OS version also at link-time ( Felix Paul Kühne )
git version control
git at videolan.org
Mon Jun 15 14:21:21 CEST 2009
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jun 15 14:21:10 2009 +0200| [b666a31e29c1f09153d90d79b84bac1bb73e6169] | committer: Felix Paul Kühne
contrib: prevent some rare linking errors on OSX by providing the minimal OS version also at link-time
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b666a31e29c1f09153d90d79b84bac1bb73e6169
---
extras/contrib/bootstrap | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index 85eb400..8482e98 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -133,10 +133,10 @@ case $HOST in
HAVE_DARWIN_9=1
CFLAGS_TUNING=" -arch ppc -mtune=G4"
EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
- EXTRA_LDFLAGS=" -arch ppc -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
+ EXTRA_LDFLAGS=" -arch ppc -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET} -Wl,-syslibroot,\${MACOSX_SDK}"
CC="/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2"
CXX="/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2"
- LD="ld -arch ppc -syslibroot \${MACOSX_SDK}"
+ LD="ld -arch ppc -syslibroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
echo "PATH = /bin:/usr/bin:/usr/local/bin:" >> config.mak
cat src/Distributions/darwin.mak >> distro.mak
if test -e /Developer/SDKs; then
@@ -161,7 +161,7 @@ case $HOST in
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk" >> config.mak
CFLAGS_TUNING=" -march=prescott -mtune=generic -arch i386"
EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
- EXTRA_LDFLAGS=" -arch i386 -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
+ EXTRA_LDFLAGS=" -arch i386 -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
CC="/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2"
CXX="/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2"
echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak
@@ -188,7 +188,7 @@ case $HOST in
CFLAGS_TUNING=" -march=prescott -mtune=core2"
fi
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} -mmacosx-version-min=\${SDK_TARGET}"
echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak
CC="gcc"
CXX="g++"
More information about the vlc-devel
mailing list