diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-02-05 08:47:18 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-02-05 08:47:18 +0100 |
commit | 1e1ff4ece588f7268964cc7341671623382d8edc (patch) | |
tree | d677783cf2f7978a4e7f3ecb10da0b6a91c2d321 | |
parent | bcf47cf2c546ac6ce6d5f98b2be6bf5acdf2010a (diff) | |
download | gst-libav-1e1ff4ece588f7268964cc7341671623382d8edc.tar.gz |
autotools: use -fno-strict-aliasing where supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ad9a7d9..c76e3b0 100644 --- a/configure.ac +++ b/configure.ac @@ -168,6 +168,10 @@ AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [ dnl define correct level for debugging messages AG_GST_SET_LEVEL_DEFAULT($GST_GIT) +dnl disable strict aliasing +AS_COMPILER_FLAG([-fno-strict-aliasing], [EXTRA_CFLAGS="-fno-strict-aliasing"]) +AC_SUBST(EXTRA_CFLAGS) + dnl *** finalize CFLAGS, LDFLAGS, LIBS *** dnl Overview: @@ -201,7 +205,7 @@ dnl prefer internal headers to already installed ones dnl also add builddir include for enumtypes and marshal dnl add GST_OPTION_CFLAGS, but overridable GST_CFLAGS="$GST_CFLAGS" -GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)" +GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $EXTRA_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)" AC_SUBST(GST_CFLAGS) AC_SUBST(GST_LIBS) |