[vlc-devel] [PATCH] freetype: Fix compilation on macOS
david.fuhrmann at gmail.com
david.fuhrmann at gmail.com
Sat May 19 13:21:24 CEST 2018
From: David Fuhrmann <dfuhrmann at videolan.org>
Usually, the per-target _LINK variable is autogenerated, taking
into account used languages based on file extension, and also
per-target _LDFLAGS. Due to #17827, _LINK for this module is
explicitly overridden, and therefore the per-target _LDFLAGS are not
respected, which leads to compilation failure.
Therefore, add macOS specific LDFLAGS to LINK directly.
---
modules/text_renderer/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/text_renderer/Makefile.am b/modules/text_renderer/Makefile.am
index a2519047625..41b370788d9 100644
--- a/modules/text_renderer/Makefile.am
+++ b/modules/text_renderer/Makefile.am
@@ -34,7 +34,7 @@ libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/android.c
endif
if HAVE_DARWIN
libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/darwin.c
-libfreetype_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation -Wl,-framework,CoreText
+libfreetype_plugin_la_LINK += -Wl,-framework,CoreFoundation -Wl,-framework,CoreText
endif
if HAVE_FRIBIDI
libfreetype_plugin_la_CPPFLAGS += $(FRIBIDI_CFLAGS) -DHAVE_FRIBIDI
--
2.15.1 (Apple Git-101)
More information about the vlc-devel
mailing list