Commit a4ba0b02 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: try to maintain X.5 runtime compatibility

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 1b58a20c4daeb20f70709fd30c176cae65acd7cb)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a7229926
......@@ -107,6 +107,8 @@ endif
endif
ifdef HAVE_MACOSX
OSX_VERSION=10.6
MIN_OSX_VERSION=10.5
MACOSX_SDK=/Developer/SDKs/MacOSX$(OSX_VERSION).sdk
PATH :=$(abspath ../../extras/tools/build/bin):$(abspath ../$(BUILD)/bin):$(PATH)
CC=gcc-4.2
......@@ -115,8 +117,8 @@ AR=ar
LD=ld
STRIP=strip
RANLIB=ranlib
EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(OSX_VERSION)
EXTRA_LDFLAGS += -Wl,-syslibroot,$(MACOSX_SDK) -mmacosx-version-min=$(OSX_VERSION) -isysroot $(MACOSX_SDK)
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
......
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