From aeda13ffd6b35f9be939d3f5fdc936a3205ec9cf Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Thu, 23 Feb 2017 13:39:04 +0000 Subject: [PATCH] Tell libtool not to deduplicate linked libraries which causes problems in the case of circular deps. Force -lc to be added at the end. Gbp-Pq: Name 01_fix-modplug-linking.patch --- ext/modplug/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/modplug/Makefile.am b/ext/modplug/Makefile.am index 07b4d1d..972efba 100644 --- a/ext/modplug/Makefile.am +++ b/ext/modplug/Makefile.am @@ -2,8 +2,8 @@ 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_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(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 -- 2.30.2