mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
autotools: use -fno-strict-aliasing where supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
This commit is contained in:
parent
90198daed1
commit
9bfbda8291
1 changed files with 6 additions and 2 deletions
|
@ -832,6 +832,10 @@ if test "x$HAVE_CXX" = "xyes"; then
|
||||||
fi
|
fi
|
||||||
AC_SUBST(VISIBILITY_CXXFLAGS)
|
AC_SUBST(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
|
dnl disable strict aliasing
|
||||||
|
AS_COMPILER_FLAG([-fno-strict-aliasing], [EXTRA_CFLAGS="-fno-strict-aliasing"])
|
||||||
|
AC_SUBST(EXTRA_CFLAGS)
|
||||||
|
|
||||||
dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
|
dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS 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)"
|
||||||
|
@ -851,8 +855,8 @@ AC_SUBST(GST_PLUGINS_BASE_CFLAGS)
|
||||||
dnl FIXME: do we want to rename to GST_ALL_* ?
|
dnl FIXME: do we want to rename to GST_ALL_* ?
|
||||||
dnl add GST_OPTION_CFLAGS, but overridable
|
dnl add GST_OPTION_CFLAGS, but overridable
|
||||||
GST_CFLAGS="$GST_CFLAGS $GST_STATIC_CFLAGS"
|
GST_CFLAGS="$GST_CFLAGS $GST_STATIC_CFLAGS"
|
||||||
GST_CXXFLAGS="$GLIB_CFLAGS $GST_CFLAGS \$(GLIB_EXTRA_CFLAGS) \$(GST_OPTION_CXXFLAGS) \$(VISIBILITY_CXXFLAGS)"
|
GST_CXXFLAGS="$GLIB_CFLAGS $GST_CFLAGS $EXTRA_CFLAGS \$(GLIB_EXTRA_CFLAGS) \$(GST_OPTION_CXXFLAGS) \$(VISIBILITY_CXXFLAGS)"
|
||||||
GST_CFLAGS="$GLIB_CFLAGS $GST_CFLAGS \$(GLIB_EXTRA_CFLAGS) \$(GST_OPTION_CFLAGS) \$(VISIBILITY_CFLAGS)"
|
GST_CFLAGS="$GLIB_CFLAGS $GST_CFLAGS $EXTRA_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)
|
||||||
dnl add GCOV libs because libtool strips -fprofile-arcs -ftest-coverage
|
dnl add GCOV libs because libtool strips -fprofile-arcs -ftest-coverage
|
||||||
|
|
Loading…
Reference in a new issue