diff --git a/configure.ac b/configure.ac index ab7918a8fd..ce22a07346 100644 --- a/configure.ac +++ b/configure.ac @@ -239,6 +239,8 @@ AC_SUBST(X_LIBS) dnl ========================================================================== dnl ============================= gst plugins ================================ dnl ========================================================================== +GST_PLUGIN_LDFLAGS='-module -avoid-version' +AC_SUBST(GST_PLUGIN_LDFLAGS) GST_PLUGINS_ALL="\ ac3parse adder audioscale auparse avi chart\ diff --git a/ext/a52dec/Makefile.am b/ext/a52dec/Makefile.am index 148af798d1..01f03fb536 100644 --- a/ext/a52dec/Makefile.am +++ b/ext/a52dec/Makefile.am @@ -11,5 +11,6 @@ endif libgsta52dec_la_SOURCES = gsta52dec.c libgsta52dec_la_CFLAGS = $(GST_CFLAGS) -O3 $(ARCHFLAGS) $(FOMIT_FRAME_POINTER) libgsta52dec_la_LIBADD = $(GST_LIBS) -la52 -lm +libgsta52dec_la_LDFLAGS = @GST_PLUGIN_LDFLAGS@ noinst_HEADERS = gsta52dec.h diff --git a/ext/dvdread/Makefile.am b/ext/dvdread/Makefile.am index 85a4256aaa..2286d90f96 100644 --- a/ext/dvdread/Makefile.am +++ b/ext/dvdread/Makefile.am @@ -8,6 +8,7 @@ plugin_LTLIBRARIES = libdvdsrc.la libdvdsrc_la_SOURCES = dvdsrc.c libdvdsrc_la_CFLAGS = $(GST_CFLAGS) libdvdsrc_la_LIBADD = $(GST_LIBS) $(DVDREAD_LIBS) +libdvdsrc_la_LDFLAGS = @GST_PLUGIN_LDFLAGS@ noinst_HEADERS = dvdsrc.h diff --git a/ext/lame/Makefile.am b/ext/lame/Makefile.am index 0b09dff9b8..4d6c5b074f 100644 --- a/ext/lame/Makefile.am +++ b/ext/lame/Makefile.am @@ -5,5 +5,6 @@ plugin_LTLIBRARIES = libgstlame.la libgstlame_la_SOURCES = gstlame.c libgstlame_la_CFLAGS = $(GST_CFLAGS) libgstlame_la_LIBADD = $(GST_LIBS) $(LAME_LIBS) +libgstlame_la_LDFLAGS = @GST_PLUGIN_LDFLAGS@ noinst_HEADERS = gstlame.h diff --git a/ext/mad/Makefile.am b/ext/mad/Makefile.am index d0d2e2334c..d58d721488 100644 --- a/ext/mad/Makefile.am +++ b/ext/mad/Makefile.am @@ -5,5 +5,6 @@ plugin_LTLIBRARIES = libgstmad.la libgstmad_la_SOURCES = gstmad.c libgstmad_la_CFLAGS = $(GST_CFLAGS) libgstmad_la_LIBADD = $(GST_LIBS) $(MAD_LIBS) +libgstmad_la_LDFLAGS = @GST_PLUGIN_LDFLAGS@ noinst_HEADERS = gstmad.h diff --git a/ext/mpeg2dec/Makefile.am b/ext/mpeg2dec/Makefile.am index e6b2b7c975..a34fe6d17f 100644 --- a/ext/mpeg2dec/Makefile.am +++ b/ext/mpeg2dec/Makefile.am @@ -11,6 +11,7 @@ endif libgstmpeg2dec_la_SOURCES = gstmpeg2dec.c libgstmpeg2dec_la_CFLAGS = $(GST_CFLAGS) -O3 $(ARCHFLAGS) $(FOMIT_FRAME_POINTER) -ffast-math libgstmpeg2dec_la_LIBADD = $(GST_LIBS) -lmpeg2 -lmpeg2dec +libgstmpeg2dec_la_LDFLAGS = @GST_PLUGIN_LDFLAGS@ # # Use the following if you use mpeg2dec from CVS diff --git a/ext/sidplay/Makefile.am b/ext/sidplay/Makefile.am index cb9e71a7f3..4155175b25 100644 --- a/ext/sidplay/Makefile.am +++ b/ext/sidplay/Makefile.am @@ -5,5 +5,6 @@ plugin_LTLIBRARIES = libgstsid.la libgstsid_la_SOURCES = gstsiddec.cc libgstsid_la_CXXFLAGS = $(GST_CFLAGS) $(SIDPLAY_CFLAGS) libgstsid_la_LIBADD = $(GST_LIBS) $(SIDPLAY_LIBS) +libgstsid_la_LDFLAGS = @GST_PLUGIN_LDFLAGS@ noinst_HEADERS = gstsiddec.h