Tell libtool not to deduplicate linked libraries which causes problems in the case...
authorIain Lane <iain.lane@canonical.com>
Sat, 23 Jan 2021 15:37:59 +0000 (15:37 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 23 Jan 2021 15:37:59 +0000 (15:37 +0000)
Gbp-Pq: Name 01_fix-modplug-linking.patch

ext/modplug/Makefile.am

index 0a3c13781270eef7c0b86ed10b997834259dbb68..bd8fc91966ad69e3cfe4fed84337238a727cbe3a 100644 (file)
@@ -2,7 +2,7 @@ plugin_LTLIBRARIES = libgstmodplug.la
 
 libgstmodplug_la_SOURCES = gstmodplug.cc
 libgstmodplug_la_CXXFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CXXFLAGS) $(MODPLUG_CFLAGS)
-libgstmodplug_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(LIBM) $(MODPLUG_LIBS)
-libgstmodplug_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstmodplug_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(LIBM) $(MODPLUG_LIBS) -lc
+libgstmodplug_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) --preserve-dup-deps
 
 noinst_HEADERS = gstmodplug.h