[vlc-devel] [RFC] contrib: Unbreak static linking

Luca Barbato lu_zero at gentoo.org
Wed Mar 5 14:36:34 CET 2014


The two frameworks are required to statically link a good number of
libraries using intl glib and friends.
---

I do not have time to track properly what breaks where, somebody more
dedicated could try to sort the root issue better maybe.

 contrib/src/main.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b6b70c1..9f1e152 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -104,7 +104,7 @@ LD=xcrun ld
 STRIP=xcrun strip
 RANLIB=xcrun 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)
+EXTRA_LDFLAGS += -Wl,-syslibroot,$(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -isysroot $(MACOSX_SDK) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION) -framework CoreFoundation -framework Carbon
 ifeq ($(ARCH),x86_64)
 EXTRA_CFLAGS += -m64
 EXTRA_LDFLAGS += -m64
--
1.9.0




More information about the vlc-devel mailing list