diff options
| author | Jeremy Huddleston <jeremyhu@apple.com> | 2010-10-30 14:55:06 -0700 |
|---|---|---|
| committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-18 00:40:10 -0700 |
| commit | a44ad9c06822908be9a09023dcd169ad5508a236 (patch) | |
| tree | edb1dc86f85cc36bd5cb426f2ea49799fdd09fe2 | |
| parent | 9e60b5ec9420c3519b7a4dae5c4ea98911d452d6 (diff) | |
configure.ac: Add -fno-strict-aliasing to CFLAGSfor-keith
This should force the server to have -fno-strict-aliasing even once it
is removed from the warning flags.
See: https://bugs.freedesktop.org/show_bug.cgi?id=31238
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
| -rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 67a683620..2918435a8 100644 --- a/configure.ac +++ b/configure.ac @@ -87,6 +87,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 |
