mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
autotools: stop controlling symbol visibility with -export-symbols-regex
Instead, use -fvisibility=hidden and explicit exports via GST_EXPORT. This should result in consistent behaviour for the autotools and Meson builds.
This commit is contained in:
parent
10bc8fdfd2
commit
61e0a11e83
1 changed files with 13 additions and 3 deletions
16
configure.ac
16
configure.ac
|
@ -963,6 +963,16 @@ else
|
||||||
fi
|
fi
|
||||||
AC_SUBST(DEPRECATED_CFLAGS)
|
AC_SUBST(DEPRECATED_CFLAGS)
|
||||||
|
|
||||||
|
VISIBILITY_CFLAGS=""
|
||||||
|
AS_COMPILER_FLAG([-fvisibility=hidden], [VISIBILITY_CFLAGS="-fvisibility=hidden"])
|
||||||
|
AC_SUBST(VISIBILITY_CFLAGS)
|
||||||
|
|
||||||
|
VISIBILITY_CXXFLAGS=""
|
||||||
|
if test "x$HAVE_CXX" = "xyes"; then
|
||||||
|
AS_CXX_COMPILER_FLAG([-fvisibility=hidden], [VISIBILITY_CXXFLAGS="-fvisibility=hidden"])
|
||||||
|
fi
|
||||||
|
AC_SUBST(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
dnl every flag in GST_OPTION_CFLAGS, GST_OPTION_CXXFLAGS and GST_OPTION_OBJCFLAGS can be overridden
|
dnl every flag in GST_OPTION_CFLAGS, GST_OPTION_CXXFLAGS and GST_OPTION_OBJCFLAGS can be overridden
|
||||||
dnl at make time with e.g. make ERROR_CFLAGS=""
|
dnl at make time with e.g. make ERROR_CFLAGS=""
|
||||||
GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
||||||
|
@ -980,9 +990,9 @@ dnl prefer internal headers to already installed ones
|
||||||
dnl also add builddir include for enumtypes and marshal
|
dnl also add builddir include for enumtypes and marshal
|
||||||
dnl add ERROR_CFLAGS, but overridable
|
dnl add ERROR_CFLAGS, but overridable
|
||||||
GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
|
GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
|
||||||
GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS)"
|
GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS) \$(VISIBILITY_CXXFLAGS)"
|
||||||
GST_OBJCFLAGS="-I\$(top_srcdir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_OBJCFLAGS)"
|
GST_OBJCFLAGS="-I\$(top_srcdir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_OBJCFLAGS)"
|
||||||
GST_CFLAGS="-I\$(top_srcdir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)"
|
GST_CFLAGS="-I\$(top_srcdir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS) \$(VISIBILITY_CFLAGS)"
|
||||||
AC_SUBST(GST_CFLAGS)
|
AC_SUBST(GST_CFLAGS)
|
||||||
AC_SUBST(GST_CXXFLAGS)
|
AC_SUBST(GST_CXXFLAGS)
|
||||||
AC_SUBST(GST_OBJCFLAGS)
|
AC_SUBST(GST_OBJCFLAGS)
|
||||||
|
@ -998,7 +1008,7 @@ AC_SUBST(GST_ALL_LDFLAGS)
|
||||||
|
|
||||||
dnl this really should only contain flags, not libs - they get added before
|
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
|
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"
|
GST_PLUGIN_LDFLAGS="-module -avoid-version $GST_ALL_LDFLAGS"
|
||||||
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
||||||
|
|
||||||
dnl *** output files ***
|
dnl *** output files ***
|
||||||
|
|
Loading…
Reference in a new issue