Add -fno-strict-aliasing to CFLAGS

This should force the server to have -fno-strict-aliasing even once it
is removed from the warning flags.

See: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <>
Reviewed-by: Gaetan Nadon's avatarGaetan Nadon <>
parent a046d649
......@@ -87,6 +87,12 @@ XORG_PROG_RAWCPP
# easier overrides at build time.
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"
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment