[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:29:52 CEST 2009
vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jun 15 14:21:10 2009 +0200| [d3777e51aab8eabbf76822854983eb0e9b477589] | 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=d3777e51aab8eabbf76822854983eb0e9b477589
---
extras/contrib/bootstrap | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index 6fa46be..25abaeb 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -132,10 +132,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
@@ -160,7 +160,7 @@ case $HOST in
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk" >> config.mak
CFLAGS_TUNING=" -march=pentium-m -mtune=prescott -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
@@ -183,7 +183,7 @@ case $HOST in
echo "MACOSX_SDK = /Developer/SDKs/MacOSX${SDK_TARGET}.sdk" >> config.mak
CFLAGS_TUNING=" -march=core2"
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