[vlc-commits] Contribs: support for PPC in contribs
Jean-Baptiste Kempf
git at videolan.org
Wed Dec 14 02:06:13 CET 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 14 02:03:03 2011 +0100| [ccfcea33533fd56e7af00f9086364b8f266bd684] | committer: Jean-Baptiste Kempf
Contribs: support for PPC in contribs
CrossCompiling from intel64 to PPC should mostly work on X.6 now
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ccfcea33533fd56e7af00f9086364b8f266bd684
---
contrib/src/main.mak | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b86161e..fdd0892 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -107,7 +107,6 @@ endif
endif
ifdef HAVE_MACOSX
-OSX_VERSION=10.6
MIN_OSX_VERSION=10.5
MACOSX_SDK=/Developer/SDKs/MacOSX$(OSX_VERSION).sdk
CC=gcc-4.2
@@ -118,14 +117,18 @@ STRIP=strip
RANLIB=ranlib
EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
EXTRA_LDFLAGS += -Wl,-syslibroot,$(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -isysroot $(MACOSX_SDK) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
-#TODO ppc
ifeq ($(ARCH),x86_64)
EXTRA_CFLAGS += -m64
EXTRA_LDFLAGS += -m64
else
+ifeq ($(ARCH), ppc)
+EXTRA_CFLAGS += -arch ppc
+EXTRA_LDFLAGS += -arch ppc
+else
EXTRA_CFLAGS += -m32
EXTRA_LDFLAGS += -m32
endif
+endif
XCODE_FLAGS = -sdk macosx$(OSX_VERSION)
ifeq ($(shell xcodebuild -version 2>/dev/null | tee /dev/null|head -1|cut -d\ -f2|cut -d. -f1),3)
More information about the vlc-commits
mailing list