diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2014-10-30 17:42:05 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2015-02-25 16:43:45 -0500 |
commit | adb4765979f627dfce44590b243cd74af086da9a (patch) | |
tree | 9794a34b6eec020d9b3f9d586f3a83a9d48d55ef | |
parent | 98235c97645ff81cac4078b97d8f30d06eea1fff (diff) | |
download | farstream-adb4765979f627dfce44590b243cd74af086da9a.tar.gz |
Enable building static GStreamer plugins
https://bugs.freedesktop.org/show_bug.cgi?id=89287
-rw-r--r-- | configure.ac | 25 | ||||
-rw-r--r-- | gst/fsmsnconference/Makefile.am | 1 | ||||
-rw-r--r-- | gst/fsrawconference/Makefile.am | 1 | ||||
-rw-r--r-- | gst/fsrtpconference/Makefile.am | 1 | ||||
-rw-r--r-- | gst/fsrtpxdata/Makefile.am | 1 | ||||
-rw-r--r-- | gst/fsvideoanyrate/Makefile.am | 1 |
6 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e8580bab..ffb9db6c 100644 --- a/configure.ac +++ b/configure.ac @@ -342,7 +342,7 @@ AC_SUBST(FS_PLUGIN_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\$\$' $FS_ALL_LDFLAGS" +GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_.*' $FS_ALL_LDFLAGS" AC_SUBST(GST_PLUGIN_LDFLAGS) AC_ARG_ENABLE([gupnp], @@ -368,6 +368,29 @@ if test "x$HAVE_GUPNP" = "xyes"; then AC_DEFINE(HAVE_GUPNP,,[Have the GUPnP IGD library]) fi +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 + AS_IF([test x$enable_static = xno], [AC_MSG_ERROR([--enable-static-plugins requires --enable-static to work])]) + AC_DEFINE(GST_PLUGIN_BUILD_STATIC, 1, + [Define if static plugins should be built]) + PLUGIN_LIBTOOLFLAGS="" +else + PLUGIN_LIBTOOLFLAGS="--tag=disable-static" +fi +AC_SUBST(PLUGIN_LIBTOOLFLAGS) +AM_CONDITIONAL(GST_PLUGIN_BUILD_STATIC, test "x$enable_static_plugins" = "xyes") + dnl *** output files *** AC_CONFIG_FILES( diff --git a/gst/fsmsnconference/Makefile.am b/gst/fsmsnconference/Makefile.am index 4f9da128..3faa34d8 100644 --- a/gst/fsmsnconference/Makefile.am +++ b/gst/fsmsnconference/Makefile.am @@ -36,6 +36,7 @@ libfsmsnconference_la_SOURCES = \ fs-msn-conference.c libfsmsnconference_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libfsmsnconference_la_LIBTOOLFLAGS = $(PLUGIN_LIBTOOLFLAGS) libfsmsnconference_la_LIBADD = \ libfsmsnconference-convenience.la \ $(top_builddir)/farstream/libfarstream-@FS_APIVERSION@.la \ diff --git a/gst/fsrawconference/Makefile.am b/gst/fsrawconference/Makefile.am index c31d0434..d09065de 100644 --- a/gst/fsrawconference/Makefile.am +++ b/gst/fsrawconference/Makefile.am @@ -29,6 +29,7 @@ AM_CFLAGS = \ libfsrawconference_la_SOURCES = fs-raw-conference-plugin.c libfsrawconference_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libfsrawconference_la_LIBTOOLFLAGS = $(PLUGIN_LIBTOOLFLAGS) libfsrawconference_la_LIBADD = \ libfsrawconference-convenience.la \ $(top_builddir)/farstream/libfarstream-@FS_APIVERSION@.la \ diff --git a/gst/fsrtpconference/Makefile.am b/gst/fsrtpconference/Makefile.am index fbf9348e..c9e8ae18 100644 --- a/gst/fsrtpconference/Makefile.am +++ b/gst/fsrtpconference/Makefile.am @@ -64,6 +64,7 @@ libfsrtpconference_la_LIBADD = \ -lm libfsrtpconference_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libfsrtpconference_la_LIBTOOLFLAGS = $(PLUGIN_LIBTOOLFLAGS) preferencesdir = $(datadir)/$(PACKAGE_TARNAME)/$(FS_APIVERSION)/fsrtpconference preferences_DATA = \ diff --git a/gst/fsrtpxdata/Makefile.am b/gst/fsrtpxdata/Makefile.am index 1cf9ffd7..6780ae43 100644 --- a/gst/fsrtpxdata/Makefile.am +++ b/gst/fsrtpxdata/Makefile.am @@ -6,6 +6,7 @@ libfsrtpxdata_la_CFLAGS = \ $(GST_BASE_CFLAGS) \ $(GST_CFLAGS) libfsrtpxdata_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libfsrtpxdata_la_LIBTOOLFLAGS = $(PLUGIN_LIBTOOLFLAGS) libfsrtpxdata_la_LIBADD = \ $(FS_LIBS) \ $(GST_BASE_LIBS) \ diff --git a/gst/fsvideoanyrate/Makefile.am b/gst/fsvideoanyrate/Makefile.am index 3c7866c4..8e711366 100644 --- a/gst/fsvideoanyrate/Makefile.am +++ b/gst/fsvideoanyrate/Makefile.am @@ -6,6 +6,7 @@ libfsvideoanyrate_la_CFLAGS = \ $(GST_BASE_CFLAGS) \ $(GST_CFLAGS) libfsvideoanyrate_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libfsvideoanyrate_la_LIBTOOLFLAGS = $(PLUGIN_LIBTOOLFLAGS) libfsvideoanyrate_la_LIBADD = \ $(FS_LIBS) \ $(GST_BASE_LIBS) \ |