blob: 8a49741e9b961e7cec9c56470c65ffae5b0bd623 [file] [log] [blame]
Description: Tell libtool not to deduplicate linked libraries which causes problems in the case of circular deps. Force -lc to be added at the end.
Author: Iain Lane <iain.lane@canonical.com>
Index: b/ext/modplug/Makefile.am
===================================================================
--- a/ext/modplug/Makefile.am
+++ b/ext/modplug/Makefile.am
@@ -2,8 +2,8 @@
libgstmodplug_la_SOURCES = gstmodplug.cc
libgstmodplug_la_CXXFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CXXFLAGS) $(MODPLUG_CFLAGS)
-libgstmodplug_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lstdc++ $(LIBM) $(MODPLUG_LIBS)
+libgstmodplug_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lstdc++ $(LIBM) $(MODPLUG_LIBS) -lc
libgstmodplug_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstmodplug_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
+libgstmodplug_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS) --preserve-dup-deps
noinst_HEADERS = gstmodplug.h