summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-24 12:10:44 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-15 15:52:58 +0200
commit948a4a36329c1b47f0369590a260a00f0f3d0eb8 (patch)
treede811acab751428a015a9997a729dbf29b0f97aa
parent04d5dafa7141e933f320a923e2e1f52d2adcea84 (diff)
gst: Add better support for static plugins
-rw-r--r--configure.ac24
-rw-r--r--ext/alsa/Makefile.am2
-rw-r--r--ext/cdparanoia/Makefile.am2
-rw-r--r--ext/libvisual/Makefile.am2
-rw-r--r--ext/ogg/Makefile.am2
-rw-r--r--ext/pango/Makefile.am2
-rw-r--r--ext/theora/Makefile.am2
-rw-r--r--ext/vorbis/Makefile.am4
-rw-r--r--gst-libs/gst/app/Makefile.am2
-rw-r--r--gst/adder/Makefile.am2
-rw-r--r--gst/app/Makefile.am2
-rw-r--r--gst/audioconvert/Makefile.am2
-rw-r--r--gst/audiorate/Makefile.am2
-rw-r--r--gst/audioresample/Makefile.am2
-rw-r--r--gst/audiotestsrc/Makefile.am2
-rw-r--r--gst/encoding/Makefile.am2
-rw-r--r--gst/gio/Makefile.am2
-rw-r--r--gst/playback/Makefile.am2
-rw-r--r--gst/subparse/Makefile.am2
-rw-r--r--gst/tcp/Makefile.am2
-rw-r--r--gst/typefind/Makefile.am2
-rw-r--r--gst/videoconvert/Makefile.am2
-rw-r--r--gst/videorate/Makefile.am2
-rw-r--r--gst/videoscale/Makefile.am2
-rw-r--r--gst/videotestsrc/Makefile.am2
-rw-r--r--gst/volume/Makefile.am2
-rw-r--r--sys/ximage/Makefile.am2
-rw-r--r--sys/xvimage/Makefile.am2
28 files changed, 51 insertions, 29 deletions
diff --git a/configure.ac b/configure.ac
index 0952b5775..4204a5349 100644
--- a/configure.ac
+++ b/configure.ac
@@ -354,6 +354,28 @@ AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
["${srcdir}/gst-plugins-base.doap"],
[$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
+dnl build static plugins or not
+AC_MSG_CHECKING([whether to build static plugins or not])
+AC_ARG_ENABLE(
+ static-plugins,
+ AC_HELP_STRING(
+ [--enable-static-plugins],
+ [build static plugins @<:@default=no@:>@]),
+ [AS_CASE(
+ [$enableval], [no], [], [yes], [],
+ [AC_MSG_ERROR([bad value "$enableval" for --enable-static-plugins])])],
+ [enable_static_plugins=no])
+AC_MSG_RESULT([$enable_static_plugins])
+if test "x$enable_static_plugins" = xyes; then
+ AC_DEFINE(GST_PLUGIN_BUILD_STATIC, 1,
+ [Define if static plugins should be built])
+ GST_PLUGIN_LIBTOOLFLAGS=""
+else
+ GST_PLUGIN_LIBTOOLFLAGS="--tag=disable-static"
+fi
+AC_SUBST(GST_PLUGIN_LIBTOOLFLAGS)
+AM_CONDITIONAL(GST_PLUGIN_BUILD_STATIC, test "x$enable_static_plugins" = "xyes")
+
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
dnl make sure it doesn't complain about unused variables if debugging is disabled
NO_WARNINGS=""
@@ -829,7 +851,7 @@ AC_SUBST(GST_LIB_LDFLAGS)
dnl this really should only contain flags, not libs - they get added before
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
-GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc.*' $GST_ALL_LDFLAGS"
+GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_.*' $GST_ALL_LDFLAGS"
AC_SUBST(GST_PLUGIN_LDFLAGS)
dnl *** output files ***
diff --git a/ext/alsa/Makefile.am b/ext/alsa/Makefile.am
index 1c6acf6f8..9a2225784 100644
--- a/ext/alsa/Makefile.am
+++ b/ext/alsa/Makefile.am
@@ -18,7 +18,7 @@ libgstalsa_la_LIBADD = \
$(ALSA_LIBS)
libgstalsa_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstalsa_la_LIBTOOLFLAGS = --tag=disable-static
+libgstalsa_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
gstalsa.h \
diff --git a/ext/cdparanoia/Makefile.am b/ext/cdparanoia/Makefile.am
index f4690a6a3..86c3842c0 100644
--- a/ext/cdparanoia/Makefile.am
+++ b/ext/cdparanoia/Makefile.am
@@ -12,6 +12,6 @@ libgstcdparanoia_la_LIBADD = \
$(GST_LIBS) \
$(CDPARANOIA_LIBS)
libgstcdparanoia_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstcdparanoia_la_LIBTOOLFLAGS = --tag=disable-static
+libgstcdparanoia_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = gstcdparanoiasrc.h
diff --git a/ext/libvisual/Makefile.am b/ext/libvisual/Makefile.am
index 07eec1a50..a996b8ea2 100644
--- a/ext/libvisual/Makefile.am
+++ b/ext/libvisual/Makefile.am
@@ -7,6 +7,6 @@ libgstlibvisual_la_LIBADD = \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_API_VERSION).la \
$(GST_BASE_LIBS) $(LIBVISUAL_LIBS)
libgstlibvisual_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstlibvisual_la_LIBTOOLFLAGS = --tag=disable-static
+libgstlibvisual_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = visual.h gstaudiovisualizer.h
diff --git a/ext/ogg/Makefile.am b/ext/ogg/Makefile.am
index 5c85cf1e8..e7d57c595 100644
--- a/ext/ogg/Makefile.am
+++ b/ext/ogg/Makefile.am
@@ -28,7 +28,7 @@ libgstogg_la_LIBADD = \
$(GST_LIBS) \
$(OGG_LIBS)
libgstogg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstogg_la_LIBTOOLFLAGS = --tag=disable-static
+libgstogg_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
Android.mk: Makefile.am $(BUILT_SOURCES)
diff --git a/ext/pango/Makefile.am b/ext/pango/Makefile.am
index 0109e014b..7ecfbdabb 100644
--- a/ext/pango/Makefile.am
+++ b/ext/pango/Makefile.am
@@ -25,5 +25,5 @@ libgstpango_la_LIBADD = \
$(GST_LIBS) \
$(PANGO_LIBS)
libgstpango_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstpango_la_LIBTOOLFLAGS = --tag=disable-static
+libgstpango_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
diff --git a/ext/theora/Makefile.am b/ext/theora/Makefile.am
index ff423a9e4..b1202a8ff 100644
--- a/ext/theora/Makefile.am
+++ b/ext/theora/Makefile.am
@@ -17,5 +17,5 @@ libgsttheora_la_LIBADD = \
$(GST_LIBS) \
$(THEORA_LIBS)
libgsttheora_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgsttheora_la_LIBTOOLFLAGS = --tag=disable-static
+libgsttheora_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
diff --git a/ext/vorbis/Makefile.am b/ext/vorbis/Makefile.am
index b97029e0d..41062bb55 100644
--- a/ext/vorbis/Makefile.am
+++ b/ext/vorbis/Makefile.am
@@ -20,7 +20,7 @@ libgstvorbis_la_LIBADD = \
$(GST_LIBS) \
$(VORBIS_LIBS) $(VORBISENC_LIBS)
libgstvorbis_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstvorbis_la_LIBTOOLFLAGS = --tag=disable-static
+libgstvorbis_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
endif
if USE_IVORBIS
@@ -36,7 +36,7 @@ libgstivorbisdec_la_LIBADD = \
$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
$(GST_LIBS) $(IVORBIS_LIBS)
libgstivorbisdec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstivorbisdec_la_LIBTOOLFLAGS = --tag=disable-static
+libgstivorbisdec_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
endif
noinst_HEADERS = gstvorbisenc.h \
diff --git a/gst-libs/gst/app/Makefile.am b/gst-libs/gst/app/Makefile.am
index e6b5cf528..e85562e8d 100644
--- a/gst-libs/gst/app/Makefile.am
+++ b/gst-libs/gst/app/Makefile.am
@@ -19,7 +19,7 @@ libgstapp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS)
libgstapp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS)
libgstapp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
-libgstapp_@GST_API_VERSION@_la_LIBTOOLFLAGS = --tag=disable-static
+libgstapp_@GST_API_VERSION@_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
libgstapp_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/app
libgstapp_@GST_API_VERSION@include_HEADERS = \
diff --git a/gst/adder/Makefile.am b/gst/adder/Makefile.am
index a29eefc17..c899cfc38 100644
--- a/gst/adder/Makefile.am
+++ b/gst/adder/Makefile.am
@@ -11,7 +11,7 @@ libgstadder_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstadder_la_LIBADD = \
$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
$(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS)
-libgstadder_la_LIBTOOLFLAGS = --tag=disable-static
+libgstadder_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = gstadder.h
diff --git a/gst/app/Makefile.am b/gst/app/Makefile.am
index 5e344a613..f2bb6f064 100644
--- a/gst/app/Makefile.am
+++ b/gst/app/Makefile.am
@@ -4,7 +4,7 @@ libgstapp_la_SOURCES = gstapp.c
libgstapp_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
libgstapp_la_LIBADD = $(GST_BASE_LIBS) $(top_builddir)/gst-libs/gst/app/libgstapp-@GST_API_VERSION@.la
libgstapp_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstapp_la_LIBTOOLFLAGS = --tag=disable-static
+libgstapp_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
Android.mk: Makefile.am $(BUILT_SOURCES)
androgenizer \
diff --git a/gst/audioconvert/Makefile.am b/gst/audioconvert/Makefile.am
index a61c86ed2..66846fc51 100644
--- a/gst/audioconvert/Makefile.am
+++ b/gst/audioconvert/Makefile.am
@@ -16,7 +16,7 @@ libgstaudioconvert_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstaudioconvert_la_LIBADD = \
$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
$(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM)
-libgstaudioconvert_la_LIBTOOLFLAGS = --tag=disable-static
+libgstaudioconvert_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
gstaudioconvert.h \
diff --git a/gst/audiorate/Makefile.am b/gst/audiorate/Makefile.am
index 557d1c861..9c21d0731 100644
--- a/gst/audiorate/Makefile.am
+++ b/gst/audiorate/Makefile.am
@@ -8,7 +8,7 @@ libgstaudiorate_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstaudiorate_la_LIBADD = $(GST_LIBS) \
$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la
-libgstaudiorate_la_LIBTOOLFLAGS = --tag=disable-static
+libgstaudiorate_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
Android.mk: Makefile.am $(BUILT_SOURCES)
androgenizer \
diff --git a/gst/audioresample/Makefile.am b/gst/audioresample/Makefile.am
index 78b4e24f9..607115d55 100644
--- a/gst/audioresample/Makefile.am
+++ b/gst/audioresample/Makefile.am
@@ -27,7 +27,7 @@ libgstaudioresample_la_LIBADD = \
$(LIBM)
libgstaudioresample_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstaudioresample_la_LIBTOOLFLAGS = --tag=disable-static
+libgstaudioresample_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
arch.h \
diff --git a/gst/audiotestsrc/Makefile.am b/gst/audiotestsrc/Makefile.am
index a7c019def..3680d20bb 100644
--- a/gst/audiotestsrc/Makefile.am
+++ b/gst/audiotestsrc/Makefile.am
@@ -6,7 +6,7 @@ libgstaudiotestsrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstaudiotestsrc_la_LIBADD = \
$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
$(GST_BASE_LIBS) $(GST_LIBS) $(LIBM)
-libgstaudiotestsrc_la_LIBTOOLFLAGS = --tag=disable-static
+libgstaudiotestsrc_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = gstaudiotestsrc.h
diff --git a/gst/encoding/Makefile.am b/gst/encoding/Makefile.am
index f1b4e5fa9..85efbd144 100644
--- a/gst/encoding/Makefile.am
+++ b/gst/encoding/Makefile.am
@@ -11,7 +11,7 @@ libgstencodebin_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstencodebin_la_LIBADD = \
$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \
$(GST_LIBS)
-libgstencodebin_la_LIBTOOLFLAGS = --tag=disable-static
+libgstencodebin_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
gstencodebin.h \
diff --git a/gst/gio/Makefile.am b/gst/gio/Makefile.am
index f4b1611b3..111dfb179 100644
--- a/gst/gio/Makefile.am
+++ b/gst/gio/Makefile.am
@@ -15,7 +15,7 @@ libgstgio_la_SOURCES = \
libgstgio_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS)
libgstgio_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(GIO_LIBS)
libgstgio_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GIO_LDFLAGS)
-libgstgio_la_LIBTOOLFLAGS = --tag=disable-static
+libgstgio_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
# headers we need but don't want installed
noinst_HEADERS = \
diff --git a/gst/playback/Makefile.am b/gst/playback/Makefile.am
index 61c60b059..24e6b164f 100644
--- a/gst/playback/Makefile.am
+++ b/gst/playback/Makefile.am
@@ -23,7 +23,7 @@ libgstplayback_la_LIBADD = \
$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
$(GST_LIBS)
-libgstplayback_la_LIBTOOLFLAGS = --tag=disable-static
+libgstplayback_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
gstplayback.h \
diff --git a/gst/subparse/Makefile.am b/gst/subparse/Makefile.am
index 4a33bd419..40c4be4db 100644
--- a/gst/subparse/Makefile.am
+++ b/gst/subparse/Makefile.am
@@ -22,7 +22,7 @@ libgstsubparse_la_SOURCES = \
libgstsubparse_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS)
libgstsubparse_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstsubparse_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS)
-libgstsubparse_la_LIBTOOLFLAGS = --tag=disable-static
+libgstsubparse_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
gstssaparse.h \
diff --git a/gst/tcp/Makefile.am b/gst/tcp/Makefile.am
index 9117f4e72..22973fa2c 100644
--- a/gst/tcp/Makefile.am
+++ b/gst/tcp/Makefile.am
@@ -34,7 +34,7 @@ nodist_libgsttcp_la_SOURCES = \
libgsttcp_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS)
libgsttcp_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgsttcp_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(GIO_LIBS)
-libgsttcp_la_LIBTOOLFLAGS = --tag=disable-static
+libgsttcp_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
gsttcp.h \
diff --git a/gst/typefind/Makefile.am b/gst/typefind/Makefile.am
index 4dfda7c5b..414b55d62 100644
--- a/gst/typefind/Makefile.am
+++ b/gst/typefind/Makefile.am
@@ -9,7 +9,7 @@ libgsttypefindfunctions_la_LIBADD = \
$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \
$(GST_BASE_LIBS) $(GST_LIBS) $(GIO_LIBS)
-libgsttypefindfunctions_la_LIBTOOLFLAGS = --tag=disable-static
+libgsttypefindfunctions_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
Android.mk: Makefile.am $(BUILT_SOURCES)
androgenizer \
diff --git a/gst/videoconvert/Makefile.am b/gst/videoconvert/Makefile.am
index b17b13471..aed82d4ba 100644
--- a/gst/videoconvert/Makefile.am
+++ b/gst/videoconvert/Makefile.am
@@ -16,7 +16,7 @@ libgstvideoconvert_la_LIBADD = \
$(ORC_LIBS) \
$(LIBM)
libgstvideoconvert_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstvideoconvert_la_LIBTOOLFLAGS = --tag=disable-static
+libgstvideoconvert_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = gstvideoconvert.h videoconvert.h gstcms.h
diff --git a/gst/videorate/Makefile.am b/gst/videorate/Makefile.am
index b275abab9..d950ad984 100644
--- a/gst/videorate/Makefile.am
+++ b/gst/videorate/Makefile.am
@@ -6,7 +6,7 @@ libgstvideorate_la_SOURCES = gstvideorate.c
libgstvideorate_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS)
libgstvideorate_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstvideorate_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS)
-libgstvideorate_la_LIBTOOLFLAGS = --tag=disable-static
+libgstvideorate_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
Android.mk: Makefile.am $(BUILT_SOURCES)
androgenizer \
diff --git a/gst/videoscale/Makefile.am b/gst/videoscale/Makefile.am
index ecd3c9bc9..5d96422cc 100644
--- a/gst/videoscale/Makefile.am
+++ b/gst/videoscale/Makefile.am
@@ -18,7 +18,7 @@ libgstvideoscale_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstvideoscale_la_LIBADD = \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_API_VERSION).la \
$(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM)
-libgstvideoscale_la_LIBTOOLFLAGS = --tag=disable-static
+libgstvideoscale_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = \
gstvideoscale.h \
diff --git a/gst/videotestsrc/Makefile.am b/gst/videotestsrc/Makefile.am
index 5096b9b1b..52230f2c3 100644
--- a/gst/videotestsrc/Makefile.am
+++ b/gst/videotestsrc/Makefile.am
@@ -13,7 +13,7 @@ libgstvideotestsrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstvideotestsrc_la_LIBADD = \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_API_VERSION).la \
$(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM)
-libgstvideotestsrc_la_LIBTOOLFLAGS = --tag=disable-static
+libgstvideotestsrc_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = gstvideotestsrc.h videotestsrc.h
diff --git a/gst/volume/Makefile.am b/gst/volume/Makefile.am
index be5f73683..bb83001ad 100644
--- a/gst/volume/Makefile.am
+++ b/gst/volume/Makefile.am
@@ -12,7 +12,7 @@ libgstvolume_la_LIBADD = \
$(GST_BASE_LIBS) \
$(GST_LIBS) \
$(ORC_LIBS)
-libgstvolume_la_LIBTOOLFLAGS = --tag=disable-static
+libgstvolume_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = gstvolume.h
diff --git a/sys/ximage/Makefile.am b/sys/ximage/Makefile.am
index d7f239058..5d113f9f1 100644
--- a/sys/ximage/Makefile.am
+++ b/sys/ximage/Makefile.am
@@ -8,6 +8,6 @@ libgstximagesink_la_LIBADD = \
$(X_LIBS) $(XSHM_LIBS)
libgstximagesink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstximagesink_la_DEPENDENCIES = $(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_API_VERSION).la
-libgstximagesink_la_LIBTOOLFLAGS = --tag=disable-static
+libgstximagesink_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = ximagesink.h ximagepool.h
diff --git a/sys/xvimage/Makefile.am b/sys/xvimage/Makefile.am
index 79bf82e4e..4cf454a6c 100644
--- a/sys/xvimage/Makefile.am
+++ b/sys/xvimage/Makefile.am
@@ -9,6 +9,6 @@ libgstxvimagesink_la_LIBADD = \
$(X_LIBS) $(XVIDEO_LIBS) $(XSHM_LIBS) $(LIBM)
libgstxvimagesink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstxvimagesink_la_DEPENDENCIES = $(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_API_VERSION).la
-libgstxvimagesink_la_LIBTOOLFLAGS = --tag=disable-static
+libgstxvimagesink_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
noinst_HEADERS = xvimagesink.h xvimagepool.h xvimageallocator.h xvcontext.h