summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-10-30 14:55:06 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-07-20 09:50:14 -0700
commite7ee57864ee8b0d6eea2ed0bdbb2c53fbd37d4f2 (patch)
tree21273550ea93967c17275c9cccc26fa7668342ca
parente9a5ec814e14b5f28434af3291069cea35ec9c97 (diff)
configure.ac: Add -fno-strict-aliasing to CFLAGSXQuartz-2.6.3
This should address https://bugs.freedesktop.org/show_bug.cgi?id=31238 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 94923db21..091b176e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,12 @@ XORG_PROG_RAWCPP
# easier overrides at build time.
XSERVER_CFLAGS='$(CWARNFLAGS)'
+dnl Explicitly add -fno-strict-aliasing since this option should disappear
+dnl 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