[vlc-commits] contrib: OSX needs special care
Rafaël Carré
git at videolan.org
Mon Nov 21 03:35:14 CET 2011
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Nov 20 21:22:28 2011 -0500| [56ba3eb2ffc0ca7ba8656fe2c7b7a45ee0f74bd4] | committer: Rafaël Carré
contrib: OSX needs special care
I could only test building for OSX 10.6 as it's what jones have
Hardcoding 32bits target until someone tests 64bits
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56ba3eb2ffc0ca7ba8656fe2c7b7a45ee0f74bd4
---
contrib/src/main.mak | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 7410356..a4c873a 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -89,6 +89,19 @@ STRIP := $(HOST)-strip
endif
endif
+ifdef HAVE_MACOSX
+OSX_VERSION=10.6
+MACOSX_SDK=/Developer/SDKs/MacOSX$(OSX_VERSION).sdk
+CC=gcc-4.2
+CXX=g++-4.2
+EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(OSX_VERSION)
+EXTRA_LDFLAGS += -Wl,-syslibroot $(MACOSX_SDK) -mmacosx-version-min=$(OSX_VERSION) -isysroot $(MACOSX_SDK)
+# FIXME
+EXTRA_CFLAGS += -m32
+EXTRA_LDFLAGS += -m32
+endif
+
+
EXTRA_CFLAGS += -I$(PREFIX)/include
CPPFLAGS := $(CPPFLAGS) $(EXTRA_CFLAGS)
CFLAGS := $(CFLAGS) $(EXTRA_CFLAGS)
More information about the vlc-commits
mailing list