aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-07-07 10:31:15 +0100
committerKeir Fraser <keir@xensource.com>2007-07-07 10:31:15 +0100
commit43aa5ed8c07cf9772cea872cde6adb6c4eef6095 (patch)
tree053fb33a0df970301b7a057bccc3d9300e9a3425 /Config.mk
parent6cd1c1ec4490760495eb9d1836abf27efc26c2d0 (diff)
downloadxen-43aa5ed8c07cf9772cea872cde6adb6c4eef6095.tar.gz
xen-43aa5ed8c07cf9772cea872cde6adb6c4eef6095.tar.bz2
xen-43aa5ed8c07cf9772cea872cde6adb6c4eef6095.zip
Specify -fno-strict-aliasing in root build config file.
Fixes correctness issues with xenstored and gcc-4.2. Original patch by Charles Coffing <ccoffing@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/Config.mk b/Config.mk
index c77f6ae020..4e2977a626 100644
--- a/Config.mk
+++ b/Config.mk
@@ -17,8 +17,9 @@ CONFIG_$(XEN_OS) := y
SHELL ?= /bin/sh
# Tools to run on system hosting the build
-HOSTCC = gcc
-HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCC = gcc
+HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS += -fno-strict-aliasing
DISTDIR ?= $(XEN_ROOT)/dist
DESTDIR ?= /
@@ -58,6 +59,8 @@ else
CFLAGS += -g
endif
+CFLAGS += -fno-strict-aliasing
+
CFLAGS += -std=gnu99
CFLAGS += -Wall -Wstrict-prototypes