mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 06:22:29 +00:00
configure: Move plugin specific flags below all the others
They use some of the other flags, like $GST_ALL_LDFLAGS which is adding -no-undefined. And -no-undefined is required on Windows to build DLLs.
This commit is contained in:
parent
b55fafdfbf
commit
2af81aa56d
1 changed files with 25 additions and 25 deletions
50
configure.ac
50
configure.ac
|
@ -220,31 +220,6 @@ AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
|
||||||
["${srcdir}/gst-rtsp-server.doap"],
|
["${srcdir}/gst-rtsp-server.doap"],
|
||||||
[$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
|
[$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")
|
|
||||||
|
|
||||||
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_.*' $GST_ALL_LDFLAGS"
|
|
||||||
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
|
||||||
|
|
||||||
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
|
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
|
||||||
dnl make sure it doesn't complain about unused variables if debugging is disabled
|
dnl make sure it doesn't complain about unused variables if debugging is disabled
|
||||||
NO_WARNINGS=""
|
NO_WARNINGS=""
|
||||||
|
@ -333,6 +308,31 @@ AC_SUBST([GST_OBJ_CFLAGS])
|
||||||
GST_OBJ_LIBS="\$(top_builddir)/gst/rtsp-server/libgstrtspserver-$GST_API_VERSION.la \$(GST_ALL_LIBS)"
|
GST_OBJ_LIBS="\$(top_builddir)/gst/rtsp-server/libgstrtspserver-$GST_API_VERSION.la \$(GST_ALL_LIBS)"
|
||||||
AC_SUBST([GST_OBJ_LIBS])
|
AC_SUBST([GST_OBJ_LIBS])
|
||||||
|
|
||||||
|
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")
|
||||||
|
|
||||||
|
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_.*' $GST_ALL_LDFLAGS"
|
||||||
|
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBCGROUP, libcgroup >= 0.26, HAVE_LIBCGROUP="yes", HAVE_LIBCGROUP="no")
|
PKG_CHECK_MODULES(LIBCGROUP, libcgroup >= 0.26, HAVE_LIBCGROUP="yes", HAVE_LIBCGROUP="no")
|
||||||
AC_SUBST(LIBCGROUP_CFLAGS)
|
AC_SUBST(LIBCGROUP_CFLAGS)
|
||||||
AC_SUBST(LIBCGROUP_LIBS)
|
AC_SUBST(LIBCGROUP_LIBS)
|
||||||
|
|
Loading…
Reference in a new issue