]> git.sesse.net Git - vlc/commitdiff
freetype: fix linking on Darwin
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 12 Feb 2015 15:04:47 +0000 (16:04 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 12 Feb 2015 19:48:00 +0000 (20:48 +0100)
configure.ac
modules/text_renderer/Makefile.am

index 72c5341434177025fab2c312daae39da4ea174f4..b5fcdbb57bf4f2f573dbe88c229e14d1b3d19473 100644 (file)
@@ -3155,9 +3155,6 @@ if test "${enable_freetype}" != "no"; then
       VLC_ADD_CPPFLAGS([skins2],[${FREETYPE_CFLAGS}])
       VLC_ADD_LIBS([skins2],[${FREETYPE_LIBS}])
 
-      AC_CHECK_HEADERS(Carbon/Carbon.h,
-                       [VLC_ADD_LIBS([freetype],[-Wl,-framework,Carbon])])
-
       dnl fontconfig support
       if test "${SYS}" != "mingw32"; then
           if test "${enable_fontconfig}" != "no"; then
index 979359a1055b53edee413291cc6789b0b64cc600..f75be772f1c458e6112b3bf72b56548b0aa58849 100644 (file)
@@ -20,6 +20,10 @@ if HAVE_FRIBIDI
 libfreetype_plugin_la_CPPFLAGS += $(FRIBIDI_CFLAGS) -DHAVE_FRIBIDI
 libfreetype_plugin_la_LIBADD += $(FRIBIDI_LIBS)
 endif
+libfreetype_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(FREETYPE_LDFLAGS) -rpath '$(textdir)'
+if HAVE_DARWIN
+libfreetype_plugin_la_LDFLAGS += -Wl,-framework,Carbon
+endif
 
 libquartztext_plugin_la_SOURCES = text_renderer/quartztext.c
 libquartztext_plugin_la_LDFLAGS = $(AM_LDLFAGS) -rpath '$(textdir)' \