Commit 5f166b88 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: support for PPC in contribs

CrossCompiling from intel64 to PPC should mostly work on X.6 now
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit ccfcea33533fd56e7af00f9086364b8f266bd684)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f366434c
...@@ -107,7 +107,6 @@ endif ...@@ -107,7 +107,6 @@ endif
endif endif
ifdef HAVE_MACOSX ifdef HAVE_MACOSX
OSX_VERSION=10.6
MIN_OSX_VERSION=10.5 MIN_OSX_VERSION=10.5
MACOSX_SDK=/Developer/SDKs/MacOSX$(OSX_VERSION).sdk MACOSX_SDK=/Developer/SDKs/MacOSX$(OSX_VERSION).sdk
PATH :=$(abspath ../../extras/tools/build/bin):$(abspath ../$(BUILD)/bin):$(PATH) PATH :=$(abspath ../../extras/tools/build/bin):$(abspath ../$(BUILD)/bin):$(PATH)
...@@ -119,14 +118,18 @@ STRIP=strip ...@@ -119,14 +118,18 @@ STRIP=strip
RANLIB=ranlib RANLIB=ranlib
EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION) 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) 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) ifeq ($(ARCH),x86_64)
EXTRA_CFLAGS += -m64 EXTRA_CFLAGS += -m64
EXTRA_LDFLAGS += -m64 EXTRA_LDFLAGS += -m64
else else
ifeq ($(ARCH), ppc)
EXTRA_CFLAGS += -arch ppc
EXTRA_LDFLAGS += -arch ppc
else
EXTRA_CFLAGS += -m32 EXTRA_CFLAGS += -m32
EXTRA_LDFLAGS += -m32 EXTRA_LDFLAGS += -m32
endif endif
endif
XCODE_FLAGS = -sdk macosx$(OSX_VERSION) 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) ifeq ($(shell xcodebuild -version 2>/dev/null | tee /dev/null|head -1|cut -d\ -f2|cut -d. -f1),3)
......
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