[vlc-commits] old contribs: compilation fixes and compiler experiment
Felix Paul Kühne
git at videolan.org
Wed Nov 2 18:51:39 CET 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Nov 2 18:50:17 2011 +0100| [92691c21c7dc7d58b86e1514091b48aea532583e] | committer: Felix Paul Kühne
old contribs: compilation fixes and compiler experiment
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92691c21c7dc7d58b86e1514091b48aea532583e
---
extras/contrib/bootstrap | 6 +++---
extras/contrib/src/contrib-src.mak | 10 ++++++----
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index 9d32354..f45a721 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -320,12 +320,12 @@ case "$DISTRO" in
add_makefile_cfg "IOS_SDK_ROOT = ${IOS_SDK_ROOT}"
;;
macosx*)
- SDK_TARGET=10.5
+ SDK_TARGET=10.6
HAVE_MACOSX_DARWIN_9=1
EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
EXTRA_CFLAGS="${EXTRA_CFLAGS} -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
- CC="/usr/bin/gcc"
- CXX="/usr/bin/g++"
+ CC="/usr/bin/clang"
+ CXX="/usr/bin/clang++"
LD="ld"
RANLIB="ranlib"
AR=
diff --git a/extras/contrib/src/contrib-src.mak b/extras/contrib/src/contrib-src.mak
index 89012d4..bf4ce38 100644
--- a/extras/contrib/src/contrib-src.mak
+++ b/extras/contrib/src/contrib-src.mak
@@ -847,8 +847,8 @@ VPX_TARGET-$(ENABLED) = --target=FIXME
VPX_TARGET-$(HAVE_LINUX) =
VPX_TARGET-$(HAVE_WIN32) = --target=x86-win32-gcc
VPX_TARGET-$(HAVE_DARWIN_OS) = --target=ppc32-darwin9-gcc
-VPX_TARGET-$(HAVE_MACOSX_ON_INTEL) = --target=x86-darwin9-gcc
-VPX_TARGET-$(HAVE_MACOSX64) = --target=x86_64-darwin9-gcc
+VPX_TARGET-$(HAVE_MACOSX_ON_INTEL) = --target=x86-darwin10-gcc
+VPX_TARGET-$(HAVE_MACOSX64) = --target=x86_64-darwin10-gcc
VPX_DEPS-$(ENABLED) =
VPX_DEPS-$(HAVE_MACOSX_ON_INTEL) += .yasm
@@ -948,6 +948,7 @@ FFMPEGCONF += --enable-cross-compile
endif
ifdef HAVE_CROSS_COMPILE_NEEDS_CROSS_PREFIX
+ifndef HAVE_MACOSX
ifndef HAVE_ANDROID
ifndef HAVE_SYMBIAN
FFMPEGCONF += --cross-prefix=$(HOST)-
@@ -960,6 +961,7 @@ FFMPEGCONF += --cross-prefix=arm-linux-androideabi- --arch=armv6
FFMPEGCONF += $(FFMPEGCONFSMALL)
endif
endif
+endif
ifdef CC
FFMPEGCONF += --cc="$(CC)"
@@ -989,12 +991,12 @@ endif
ifdef HAVE_MACOSX32
FFMPEGCONF += --enable-libvpx
-FFMPEGCONF += --cc=gcc-4.2
+FFMPEGCONF += --cc=clang
endif
ifdef HAVE_MACOSX64
FFMPEGCONF += --enable-libvpx
-FFMPEGCONF += --cc=gcc-4.2
+FFMPEGCONF += --cc=clang
FFMPEGCONF += --cpu=core2
endif
More information about the vlc-commits
mailing list