[vlc-commits] VLCKit: fixed 32bit compilation in Release mode on 10.6

Felix Paul Kühne git at videolan.org
Wed Feb 16 01:28:45 CET 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Feb 16 01:28:32 2011 +0100| [19e6dc56dc5a6b9d64e6c9cffd3fd4db2a985600] | committer: Felix Paul Kühne

VLCKit: fixed 32bit compilation in Release mode on 10.6

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

 projects/macosx/framework/Configure.sh |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/projects/macosx/framework/Configure.sh b/projects/macosx/framework/Configure.sh
index 45ce60c..0beb34e 100644
--- a/projects/macosx/framework/Configure.sh
+++ b/projects/macosx/framework/Configure.sh
@@ -84,11 +84,27 @@ for arch in $ARCHS; do
     mkdir -p $arch
     cd $arch
 
+    echo "Running [$arch] configure $this_args"
     if test $arch = "x86_64"; then
-        this_args="--build=x86_64-apple-darwin10 $this_args"
+        export CFLAGS="-m64 -arch x86_64"
+        export CXXFLAGS="-m64 -arch x86_64"
+        export OBJCFLAGS="-m64 -arch x86_64"
+        export CPPFLAGS="-m64 -arch x86_64"
+        $top_srcdir/configure --build=x86_64-apple-darwin10 $this_args
+    fi
+    if test $arch = "i386"; then
+        export CFLAGS="-m32 -arch i686"
+        export CXXFLAGS="-m32 -arch i686"
+        export OBJCFLAGS="-m32 -arch i686"
+        export CPPFLAGS="-m32 -arch i686"
+        $top_srcdir/configure --build=i686-apple-darwin10 $this_args
+    fi
+    if test $arch = "ppc"; then
+        export CFLAGS="-m32 -arch ppc"
+        export CXXFLAGS="-m32 -arch ppc"
+        export OBJCFLAGS="-m32 -arch ppc"
+        export CPPFLAGS="-m32 -arch ppc"
+        $top_srcdir/configure --build=powerpc-apple-darwin9 $this_args
     fi
-
-    echo "Running[$arch] configure $this_args"
-    $top_srcdir/configure $this_args
     cd ..
 done



More information about the vlc-commits mailing list