diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-02-04 12:26:48 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-02-05 08:44:52 +0100 |
commit | ca7833edacbda643d9758dfb412e157a873ac109 (patch) | |
tree | dc1ad7d6ff7ad8ead04a4e893048b55fa9427a18 | |
parent | 416d75ba6510fa3138069aab802b444eae292b4a (diff) |
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 28bf60a05f..3b3519ca50 100644 --- a/configure.ac +++ b/configure.ac @@ -379,6 +379,10 @@ VISIBILITY_CFLAGS="" AS_COMPILER_FLAG([-fvisibility=hidden], [VISIBILITY_CFLAGS="-fvisibility=hidden"]) AC_SUBST(VISIBILITY_CFLAGS) +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 can be overridden dnl at make time with e.g. make ERROR_CFLAGS="" GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)" @@ -388,7 +392,7 @@ dnl FIXME: do we want to rename to GST_ALL_* ? 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_OPTION_CFLAGS) \$(ERROR_CFLAGS) \$(VISIBILITY_CFLAGS) -DGST_USE_UNSTABLE_API" +GST_CFLAGS="$GST_CFLAGS $EXTRA_CFLAGS \$(GST_OPTION_CFLAGS) \$(ERROR_CFLAGS) \$(VISIBILITY_CFLAGS) -DGST_USE_UNSTABLE_API" AC_SUBST(GST_CFLAGS) AC_SUBST(GST_LIBS) |