[vlc-devel] [PATCH] freetype: fix linking on Darwin
Felix Paul Kühne
fkuehne at videolan.org
Thu Feb 12 19:31:53 CET 2015
---
configure.ac | 3 ---
modules/text_renderer/Makefile.am | 4 ++++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 72c5341..b5fcdbb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/modules/text_renderer/Makefile.am b/modules/text_renderer/Makefile.am
index 979359a..f75be77 100644
--- a/modules/text_renderer/Makefile.am
+++ b/modules/text_renderer/Makefile.am
@@ -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)' \
--
1.9.3 (Apple Git-50)
More information about the vlc-devel
mailing list