Remove plugin specific static build option
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 16 May 2017 18:37:03 +0000 (14:37 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 16 May 2017 18:37:03 +0000 (14:37 -0400)
Static and dynamic plugins now have the same interface. The standard
--enable-static/--enable-shared toggle are sufficient.

configure.ac
plugins/nle/Makefile.am

index 726def8..659dcc4 100644 (file)
@@ -414,28 +414,6 @@ dnl LDFLAGS modifier defining exported symbols from built libraries
 GST_LIB_LDFLAGS=" -export-symbols-regex \^_*\(ges_\|GES_\).*"
 AC_SUBST(GST_LIB_LDFLAGS)
 
-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")
-
 dnl GST_PLUGIN_LDFLAGS must 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_.*' $GST_ALL_LDFLAGS"
index 2e8fa57..5805235 100644 (file)
@@ -16,7 +16,6 @@ libgstnle_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \
        $(GST_BASE_LIBS) $(GST_LIBS)
 
 libgstnle_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstnle_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
 
 noinst_HEADERS = \
        nle.h                   \