[vlc-commits] freetype: fix static linking.

Konstantin Pavlov git at videolan.org
Sat Nov 5 17:18:26 CET 2016


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Thu Nov  3 02:45:04 2016 +0300| [6c76cb23b0d6c4f85423783a9138be83f7d3667a] | committer: Konstantin Pavlov

freetype: fix static linking.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c76cb23b0d6c4f85423783a9138be83f7d3667a
---

 modules/text_renderer/Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/text_renderer/Makefile.am b/modules/text_renderer/Makefile.am
index be98a94..424032d 100644
--- a/modules/text_renderer/Makefile.am
+++ b/modules/text_renderer/Makefile.am
@@ -9,7 +9,7 @@ libfreetype_plugin_la_SOURCES = \
 	text_renderer/freetype/text_layout.c text_renderer/freetype/text_layout.h
 
 libfreetype_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
-libfreetype_plugin_la_LIBADD = $(LIBM) $(FREETYPE_LIBS)
+libfreetype_plugin_la_LIBADD =
 libfreetype_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(FREETYPE_LDFLAGS) -rpath '$(textdir)'
 
 if HAVE_WIN32_DESKTOP
@@ -19,7 +19,7 @@ endif
 if HAVE_FONTCONFIG
 libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/fontconfig.c
 libfreetype_plugin_la_CPPFLAGS += -DHAVE_FONTCONFIG
-libfreetype_plugin_la_LIBADD += -lfontconfig
+libfreetype_plugin_la_LIBADD += -lfontconfig $(LIBXML2_LIBS)
 endif
 if HAVE_ANDROID
 libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/android.c
@@ -36,6 +36,7 @@ if HAVE_HARFBUZZ
 libfreetype_plugin_la_CPPFLAGS += $(HARFBUZZ_CFLAGS) -DHAVE_HARFBUZZ
 libfreetype_plugin_la_LIBADD += $(HARFBUZZ_LIBS)
 endif
+libfreetype_plugin_la_LIBADD += $(LIBM) $(LIBS_freetype) $(FREETYPE_LIBS)
 if HAVE_FREETYPE
 text_LTLIBRARIES += libfreetype_plugin.la
 endif



More information about the vlc-commits mailing list