Commit 7c0fab32 authored by Felix Paul Kühne's avatar Felix Paul Kühne

contribs: Use GCC 4.2 instead of LLVM-GCC 4.2 to compile the 32bit contribs on...

contribs: Use GCC 4.2 instead of LLVM-GCC 4.2 to compile the 32bit contribs on Darwin like we already do for the 64bit ones

LLVM introduced to many runtime bugs for now. Updated bin package for x86_64 is already available, PPC and i386 will follow within the hour.
parent 376d217e
...@@ -133,8 +133,8 @@ case $HOST in ...@@ -133,8 +133,8 @@ case $HOST in
CFLAGS_TUNING=" -arch ppc -mtune=G4" CFLAGS_TUNING=" -arch ppc -mtune=G4"
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=" -arch ppc -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET} -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" CC="/Developer/usr/bin/gcc-4.2"
CXX="/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2" CXX="/Developer/usr/bin/g++-4.2"
LD="ld -arch ppc -syslibroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" LD="ld -arch ppc -syslibroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
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
...@@ -161,8 +161,8 @@ case $HOST in ...@@ -161,8 +161,8 @@ case $HOST in
CFLAGS_TUNING=" -march=pentium-m -mtune=prescott -arch i386" CFLAGS_TUNING=" -march=pentium-m -mtune=prescott -arch i386"
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=" -arch i386 -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" 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" CC="/Developer/usr/bin/gcc-4.2"
CXX="/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2" CXX="/Developer/usr/bin/g++-4.2"
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
if test -e /Developer/SDKs; then if test -e /Developer/SDKs; then
...@@ -347,8 +347,8 @@ if test $HAVE_DARWIN_9; then ...@@ -347,8 +347,8 @@ if test $HAVE_DARWIN_9; then
set +x set +x
echo echo
echo "*****************************************************************" echo "*****************************************************************"
echo "* We are using the llvm-gcc-4.2 compiler on OS X by default, *" echo "* We are using GCC-4.2 on OS X, so compilation WILL FAIL if it *"
echo "* so compilation will fail if it isn't installed. *" echo "* is NOT installed. *"
echo "*****************************************************************" echo "*****************************************************************"
fi fi
...@@ -357,10 +357,8 @@ if test $HAVE_DARWIN_10; then ...@@ -357,10 +357,8 @@ if test $HAVE_DARWIN_10; then
echo echo
echo "*****************************************************************" echo "*****************************************************************"
echo "* You are running Darwin 10. *" echo "* You are running Darwin 10. *"
echo "* For testing purposes, VLC will be compiled in 64bit mode. *" echo "* For testing purposes, VLC will be compiled in 64bit mode *"
echo "* While doing so, for time being, the 10.5 SDK is used. *" echo "* using the 10.5 SDK for backward-compatibility. *"
echo "* Note that in contrast to our Darwin 9 builds, we are not *"
echo "* using the llvm compiler, but plain GCC 4.2. *"
echo "*****************************************************************" echo "*****************************************************************"
set -x set -x
fi fi
...@@ -152,19 +152,11 @@ FFMPEGCONF += --arch=$(ARCH) ...@@ -152,19 +152,11 @@ FFMPEGCONF += --arch=$(ARCH)
FFMPEGCONF += --disable-libfaac FFMPEGCONF += --disable-libfaac
ifdef HAVE_DARWIN_10 ifdef HAVE_DARWIN_10
FFMPEGCONF += --cpu=core2 FFMPEGCONF += --cpu=core2
X264CONF+=--host=x86_64-apple-darwin10
endif endif
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_DARWIN_OS_ON_INTEL
FFMPEG_CFLAGS += -DHAVE_LRINTF FFMPEG_CFLAGS += -DHAVE_LRINTF
endif endif
ifndef HAVE_DARWIN_10
NONLLVMCC+= CC="/Developer/usr/bin/gcc-4.2"
NONLLVMCC+= CXX="/Developer/usr/bin/g++-4.2"
else
X264CONF+=--host=x86_64-apple-darwin10
NONLLVMCC+= $(HOSTCC)
endif
else
NONLLVMCC+= $(HOSTCC)
endif endif
ifdef HAVE_AMR ifdef HAVE_AMR
...@@ -1345,7 +1337,7 @@ endif ...@@ -1345,7 +1337,7 @@ endif
.goom2k4: goom .goom2k4: goom
ifdef HAVE_DARWIN_OS ifdef HAVE_DARWIN_OS
(cd $<; ./configure --prefix=$(PREFIX) --disable-shared --enable-static && make && make install) (cd $<; $(HOSTCC) ./configure --prefix=$(PREFIX) --disable-shared --enable-static && make && make install)
else else
(cd $< && rm -f configure; aclocal -I m4/ && automake --add-missing && autoconf configure.in > configure && $(HOSTCC) sh ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared --enable-static --disable-glibtest --disable-gtktest && make && make install) (cd $< && rm -f configure; aclocal -I m4/ && automake --add-missing && autoconf configure.in > configure && $(HOSTCC) sh ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared --enable-static --disable-glibtest --disable-gtktest && make && make install)
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