[vlc-devel] commit: 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 ( Felix Paul Kühne )

git version control git at videolan.org
Wed Jun 17 17:44:29 CEST 2009


vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jun 17 17:41:11 2009 +0200| [7c0fab32250328d9b13f2bc12f8156e52e561785] | committer: Felix Paul Kühne 

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c0fab32250328d9b13f2bc12f8156e52e561785
---

 extras/contrib/bootstrap    |   18 ++++++++----------
 extras/contrib/src/Makefile |   12 ++----------
 2 files changed, 10 insertions(+), 20 deletions(-)

diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index 25abaeb..32f4aa8 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -133,8 +133,8 @@ case $HOST in
         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} -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"
+        CC="/Developer/usr/bin/gcc-4.2"
+        CXX="/Developer/usr/bin/g++-4.2"
         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
@@ -161,8 +161,8 @@ case $HOST in
         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} -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"
+        CC="/Developer/usr/bin/gcc-4.2"
+        CXX="/Developer/usr/bin/g++-4.2"
         echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak
         cat src/Distributions/darwin.mak >> distro.mak
         if test -e /Developer/SDKs; then
@@ -347,8 +347,8 @@ if test $HAVE_DARWIN_9; then
     set +x
     echo
     echo "*****************************************************************"
-    echo "* We are using the llvm-gcc-4.2 compiler on OS X by default,    *"
-    echo "* so compilation will fail if it isn't installed.               *"
+    echo "* We are using GCC-4.2 on OS X, so compilation WILL FAIL if it  *"
+    echo "* is NOT installed. *"
     echo "*****************************************************************"
 fi
 
@@ -357,10 +357,8 @@ if test $HAVE_DARWIN_10; then
     echo
     echo "*****************************************************************"
     echo "* You are running Darwin 10.                                    *"
-    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 "* Note that in contrast to our Darwin 9 builds, we are not      *"
-    echo "* using the llvm compiler, but plain GCC 4.2.                   *"
+    echo "* For testing purposes, VLC will be compiled in 64bit mode      *"
+    echo "* using the 10.5 SDK for backward-compatibility.                *"
     echo "*****************************************************************"
     set -x
 fi
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 6ce07a5..1fee4bb 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -152,19 +152,11 @@ FFMPEGCONF += --arch=$(ARCH)
 FFMPEGCONF += --disable-libfaac
 ifdef HAVE_DARWIN_10
 FFMPEGCONF += --cpu=core2
+X264CONF+=--host=x86_64-apple-darwin10
 endif
 ifdef HAVE_DARWIN_OS_ON_INTEL
 FFMPEG_CFLAGS += -DHAVE_LRINTF
 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
 
 ifdef HAVE_AMR
@@ -1345,7 +1337,7 @@ endif
 
 .goom2k4: goom
 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
 	(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




More information about the vlc-devel mailing list