[vlc-commits] Contribs: try to maintain X.5 runtime compatibility

Jean-Baptiste Kempf git at videolan.org
Thu Dec 8 23:40:06 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec  8 18:58:46 2011 +0100| [1b58a20c4daeb20f70709fd30c176cae65acd7cb] | committer: Jean-Baptiste Kempf

Contribs: try to maintain X.5 runtime compatibility

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 contrib/src/main.mak |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index ea95221..b86161e 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -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
 CC=gcc-4.2
 CXX=g++-4.2
@@ -114,8 +116,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



More information about the vlc-commits mailing list