From: Tim-Philipp Müller Date: Sun, 4 Feb 2018 11:24:09 +0000 (+0100) Subject: autotools: use -fno-strict-aliasing where supported X-Git-Tag: 1.16.2~169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22e1bc7763d2ddde71553788d52c4b027c4e6f5e;p=platform%2Fupstream%2Fgst-rtsp-server.git autotools: use -fno-strict-aliasing where supported https://bugzilla.gnome.org/show_bug.cgi?id=769183 --- diff --git a/configure.ac b/configure.ac index fa93504..40ee2f7 100644 --- a/configure.ac +++ b/configure.ac @@ -268,6 +268,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 at make time GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)" AC_SUBST(GST_OPTION_CFLAGS) @@ -275,7 +279,7 @@ AC_SUBST(GST_OPTION_CFLAGS) dnl FIXME: do we want to rename to GST_ALL_* ? dnl prefer internal headers to already installed ones dnl add GST_OPTION_CFLAGS, but overridable -GST_CFLAGS="$GST_CFLAGS \$(GST_STATIC_CFLAGS) \$(GST_OPTION_CFLAGS) \$(VISIBILITY_CFLAGS)" +GST_CFLAGS="$GST_CFLAGS $EXTRA_CFLAGS \$(GST_STATIC_CFLAGS) \$(GST_OPTION_CFLAGS) \$(VISIBILITY_CFLAGS)" AC_SUBST(GST_CFLAGS) AC_SUBST(GST_LIBS)