[PATCH] configure.ac: Add -fno-strict-aliasing to CFLAGS

Jeremy Huddleston jeremyhu at freedesktop.org
Sat Oct 30 15:02:42 PDT 2010


This should address https://bugs.freedesktop.org/show_bug.cgi?id=31238 in the short term, although I'd much rather see a fix for:

https://bugs.freedesktop.org/show_bug.cgi?id=22939


Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
---
 configure.ac |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index e8f9473..01c5196 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,12 @@ AC_PROG_SED
 # easier overrides at build time.
 XSERVER_CFLAGS='$(CWARNFLAGS)'
 
+dnl Explicitly add -fno-strict-aliasing since this option should disappear
+dln from util-macros CWARNFLAGS
+if  test "x$GCC" = xyes ; then
+    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
+fi
+
 dnl Check for dtrace program (needed to build Xserver dtrace probes)
 dnl Also checks for <sys/sdt.h>, since some Linux distros have an 
 dnl ISDN trace program named dtrace
-- 
1.5.6.6




More information about the xorg-devel mailing list