commit 69d58c2a969ee8d98ef458683a658a6cbec0e5b7 Author: Dominique Leuenberger Date: Mon Mar 30 17:03:46 2015 +0200 Build: link libasb_plugin_font.la with GTK3 Until f630bcf, linking GDKPIXBUF implicitly also linked against gtk+-3.0 libappstream-builder itself is linked against the whole stack, but when linking using -Wl,--as-needed, the library references to cairo and gdk are dropped for not being used. Hence, let's explicitly link the font-plugin against GTK. diff --git a/libappstream-builder/plugins/Makefile.am b/libappstream-builder/plugins/Makefile.am index 695bebc..71bc44b 100644 --- a/libappstream-builder/plugins/Makefile.am +++ b/libappstream-builder/plugins/Makefile.am @@ -125,7 +125,7 @@ libasb_plugin_ibus_xml_la_LDFLAGS = -module -avoid-version libasb_plugin_ibus_xml_la_CFLAGS = $(GLIB_CFLAGS) $(WARNINGFLAGS_C) libasb_plugin_font_la_SOURCES = asb-plugin-font.c -libasb_plugin_font_la_LIBADD = $(GLIB_LIBS) $(FREETYPE_LIBS) $(GDKPIXBUF_LIBS) +libasb_plugin_font_la_LIBADD = $(GLIB_LIBS) $(FREETYPE_LIBS) $(GDKPIXBUF_LIBS) $(GTK_LIBS) libasb_plugin_font_la_LDFLAGS = -module -avoid-version libasb_plugin_font_la_CFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(WARNINGFLAGS_C)