Commit 92691c21 authored by Felix Paul Kühne's avatar Felix Paul Kühne

old contribs: compilation fixes and compiler experiment

parent 412774e9
...@@ -320,12 +320,12 @@ case "$DISTRO" in ...@@ -320,12 +320,12 @@ case "$DISTRO" in
add_makefile_cfg "IOS_SDK_ROOT = ${IOS_SDK_ROOT}" add_makefile_cfg "IOS_SDK_ROOT = ${IOS_SDK_ROOT}"
;; ;;
macosx*) macosx*)
SDK_TARGET=10.5 SDK_TARGET=10.6
HAVE_MACOSX_DARWIN_9=1 HAVE_MACOSX_DARWIN_9=1
EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" 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}" EXTRA_CFLAGS="${EXTRA_CFLAGS} -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
CC="/usr/bin/gcc" CC="/usr/bin/clang"
CXX="/usr/bin/g++" CXX="/usr/bin/clang++"
LD="ld" LD="ld"
RANLIB="ranlib" RANLIB="ranlib"
AR= AR=
......
...@@ -847,8 +847,8 @@ VPX_TARGET-$(ENABLED) = --target=FIXME ...@@ -847,8 +847,8 @@ VPX_TARGET-$(ENABLED) = --target=FIXME
VPX_TARGET-$(HAVE_LINUX) = VPX_TARGET-$(HAVE_LINUX) =
VPX_TARGET-$(HAVE_WIN32) = --target=x86-win32-gcc VPX_TARGET-$(HAVE_WIN32) = --target=x86-win32-gcc
VPX_TARGET-$(HAVE_DARWIN_OS) = --target=ppc32-darwin9-gcc VPX_TARGET-$(HAVE_DARWIN_OS) = --target=ppc32-darwin9-gcc
VPX_TARGET-$(HAVE_MACOSX_ON_INTEL) = --target=x86-darwin9-gcc VPX_TARGET-$(HAVE_MACOSX_ON_INTEL) = --target=x86-darwin10-gcc
VPX_TARGET-$(HAVE_MACOSX64) = --target=x86_64-darwin9-gcc VPX_TARGET-$(HAVE_MACOSX64) = --target=x86_64-darwin10-gcc
VPX_DEPS-$(ENABLED) = VPX_DEPS-$(ENABLED) =
VPX_DEPS-$(HAVE_MACOSX_ON_INTEL) += .yasm VPX_DEPS-$(HAVE_MACOSX_ON_INTEL) += .yasm
...@@ -948,6 +948,7 @@ FFMPEGCONF += --enable-cross-compile ...@@ -948,6 +948,7 @@ FFMPEGCONF += --enable-cross-compile
endif endif
ifdef HAVE_CROSS_COMPILE_NEEDS_CROSS_PREFIX ifdef HAVE_CROSS_COMPILE_NEEDS_CROSS_PREFIX
ifndef HAVE_MACOSX
ifndef HAVE_ANDROID ifndef HAVE_ANDROID
ifndef HAVE_SYMBIAN ifndef HAVE_SYMBIAN
FFMPEGCONF += --cross-prefix=$(HOST)- FFMPEGCONF += --cross-prefix=$(HOST)-
...@@ -960,6 +961,7 @@ FFMPEGCONF += --cross-prefix=arm-linux-androideabi- --arch=armv6 ...@@ -960,6 +961,7 @@ FFMPEGCONF += --cross-prefix=arm-linux-androideabi- --arch=armv6
FFMPEGCONF += $(FFMPEGCONFSMALL) FFMPEGCONF += $(FFMPEGCONFSMALL)
endif endif
endif endif
endif
ifdef CC ifdef CC
FFMPEGCONF += --cc="$(CC)" FFMPEGCONF += --cc="$(CC)"
...@@ -989,12 +991,12 @@ endif ...@@ -989,12 +991,12 @@ endif
ifdef HAVE_MACOSX32 ifdef HAVE_MACOSX32
FFMPEGCONF += --enable-libvpx FFMPEGCONF += --enable-libvpx
FFMPEGCONF += --cc=gcc-4.2 FFMPEGCONF += --cc=clang
endif endif
ifdef HAVE_MACOSX64 ifdef HAVE_MACOSX64
FFMPEGCONF += --enable-libvpx FFMPEGCONF += --enable-libvpx
FFMPEGCONF += --cc=gcc-4.2 FFMPEGCONF += --cc=clang
FFMPEGCONF += --cpu=core2 FFMPEGCONF += --cpu=core2
endif endif
......
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