diff --git a/configure.ac b/configure.ac index b26bb62090..df3f49e9fd 100644 --- a/configure.ac +++ b/configure.ac @@ -350,6 +350,9 @@ GST_INT_CFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir)/include" AC_SUBST(GST_CFLAGS, "$LIBGST_CFLAGS $GST_INT_CFLAGS") AC_SUBST(GST_LIBS, "$LIBGST_LIBS $GST_INT_LIBS") +GST_PLUGIN_LDFLAGS='-module -avoid-version' +AC_SUBST(GST_PLUGIN_LDFLAGS) + AC_CONFIG_SUBDIRS(libs/ext/cothreads) dnl ################################################## diff --git a/gst/autoplug/Makefile.am b/gst/autoplug/Makefile.am index d23cc8d11f..73380e0fac 100644 --- a/gst/autoplug/Makefile.am +++ b/gst/autoplug/Makefile.am @@ -10,27 +10,27 @@ plugin_LTLIBRARIES = \ libgststaticautoplug_la_SOURCES = gststaticautoplug.c libgststaticautoplug_la_CFLAGS = $(GST_CFLAGS) libgststaticautoplug_la_LIBADD = -libgststaticautoplug_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgststaticautoplug_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgststaticautoplugrender_la_SOURCES = gststaticautoplugrender.c libgststaticautoplugrender_la_CFLAGS = $(GST_CFLAGS) libgststaticautoplugrender_la_LIBADD = -libgststaticautoplugrender_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgststaticautoplugrender_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstautoplugcache_la_SOURCES = gstautoplugcache.c libgstautoplugcache_la_CFLAGS = $(GST_CFLAGS) libgstautoplugcache_la_LIBADD = -libgstautoplugcache_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgstautoplugcache_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstautoplugger_la_SOURCES = gstautoplugger.c libgstautoplugger_la_CFLAGS = $(GST_CFLAGS) libgstautoplugger_la_LIBADD = -libgstautoplugger_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgstautoplugger_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstspider_la_SOURCES = gstspider.c gstspideridentity.c gstsearchfuncs.c libgstspider_la_CFLAGS = $(GST_CFLAGS) libgstspider_la_LIBADD = -libgstspider_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgstspider_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) noinst_HEADERS = gststaticautoplug.h gststaticautoplugrender.h \ gstspider.h gstspideridentity.h gstsearchfuncs.h diff --git a/gst/elements/Makefile.am b/gst/elements/Makefile.am index d9e68fb0b5..dc8dc4728c 100644 --- a/gst/elements/Makefile.am +++ b/gst/elements/Makefile.am @@ -20,7 +20,7 @@ libgstelements_la_SOURCES = \ gstmd5sink.c libgstelements_la_CFLAGS = $(GST_CFLAGS) libgstelements_la_LIBADD = -libgstelements_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) @GST_LT_LDFLAGS@ +libgstelements_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) noinst_HEADERS = \ gstfakesrc.h \ diff --git a/gst/schedulers/Makefile.am b/gst/schedulers/Makefile.am index 36bc761940..f7abe84311 100644 --- a/gst/schedulers/Makefile.am +++ b/gst/schedulers/Makefile.am @@ -5,12 +5,12 @@ plugin_LTLIBRARIES = libgstbasicscheduler.la libgststandardscheduler.la libgstbasicscheduler_la_SOURCES = gstbasicscheduler.c libgstbasicscheduler_la_CFLAGS = $(GST_CFLAGS) libgstbasicscheduler_la_LIBADD = ../libcothreads.la -libgstbasicscheduler_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgstbasicscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgststandardscheduler_la_SOURCES = gststandardscheduler.c libgststandardscheduler_la_CFLAGS = $(GST_CFLAGS) -I$(top_srcdir)/libs/ext/cothreads libgststandardscheduler_la_LIBADD = $(top_builddir)/libs/ext/cothreads/cothreads/libcothreads-gthreads.la -libgststandardscheduler_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgststandardscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) ## this is a REALLY evil hack ## but we need to keep it as long as we have libs/gst and libs/ext diff --git a/gst/types/Makefile.am b/gst/types/Makefile.am index 0ff45c38d8..95b69162a5 100644 --- a/gst/types/Makefile.am +++ b/gst/types/Makefile.am @@ -5,4 +5,4 @@ plugin_LTLIBRARIES = libgsttypes.la libgsttypes_la_SOURCES = gsttypes.c libgsttypes_la_CFLAGS = $(GST_CFLAGS) libgsttypes_la_LIBADD = -libgsttypes_la_LDFLAGS = @GST_LT_LDFLAGS@ +libgsttypes_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) diff --git a/plugins/elements/Makefile.am b/plugins/elements/Makefile.am index d9e68fb0b5..dc8dc4728c 100644 --- a/plugins/elements/Makefile.am +++ b/plugins/elements/Makefile.am @@ -20,7 +20,7 @@ libgstelements_la_SOURCES = \ gstmd5sink.c libgstelements_la_CFLAGS = $(GST_CFLAGS) libgstelements_la_LIBADD = -libgstelements_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) @GST_LT_LDFLAGS@ +libgstelements_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) noinst_HEADERS = \ gstfakesrc.h \