diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-02-03 17:56:04 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-02-03 17:56:04 +0100 |
commit | ffa4dc4dce8c44f372b361ef00fb7715eb5cbb87 (patch) | |
tree | 6c724c39d876ea1e57d9fca7c36a2cff5d543800 | |
parent | 08dab770d6b2288373d01d847f1ea98c42175835 (diff) |
autotools: use -fno-strict-aliasing where supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | gst/printf/Makefile.am | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index c0412ed1a..8c922f8d3 100644 --- a/configure.ac +++ b/configure.ac @@ -935,6 +935,10 @@ dnl special warning flags for gst/printf AS_COMPILER_FLAG([-Wno-format-nonliteral], [PRINTF_CFLAGS="-Wno-format-nonliteral"]) AC_SUBST(PRINTF_CFLAGS) +dnl disable strict aliasing +AS_COMPILER_FLAG([-fno-strict-aliasing], [EXTRA_CFLAGS="-fno-strict-aliasing"]) +AC_SUBST(EXTRA_CFLAGS) + dnl define correct level for debugging messages AG_GST_SET_LEVEL_DEFAULT($GST_GIT) @@ -982,8 +986,8 @@ dnl - src and build dirs need to be added because every piece that gets built dnl will need the GStreamer source and generated headers dnl LIBS: XML doesn't need to be added because we don't explicitly use symbols dnl from LibXML except for in the core library -GST_ALL_CXXFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $XML_CFLAGS \$(GST_OPTION_CXXFLAGS) \$(ERROR_CXXFLAGS)" -GST_ALL_CFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $XML_CFLAGS \$(GST_OPTION_CFLAGS) \$(ERROR_CFLAGS)" +GST_ALL_CXXFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS) \$(ERROR_CXXFLAGS)" +GST_ALL_CFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $EXTRA_CFLAGS \$(GST_OPTION_CFLAGS) \$(ERROR_CFLAGS)" dnl FIXME: check if LTLIBINTL is needed everywhere dnl I presume it is given that it contains the symbols that _() stuff maps to diff --git a/gst/printf/Makefile.am b/gst/printf/Makefile.am index 1388be770..f62b44800 100644 --- a/gst/printf/Makefile.am +++ b/gst/printf/Makefile.am @@ -14,7 +14,7 @@ AM_CPPFLAGS += $(PRINTF_EXTRA_CFLAGS) noinst_LTLIBRARIES = libgstprintf.la -libgstprintf_la_CFLAGS = +libgstprintf_la_CFLAGS = $(EXTRA_CFLAGS) libgstprintf_la_SOURCES = \ asnprintf.c \ printf-args.c \ |