diff options
author | Keir Fraser <keir@xensource.com> | 2007-07-07 10:31:15 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-07-07 10:31:15 +0100 |
commit | 43aa5ed8c07cf9772cea872cde6adb6c4eef6095 (patch) | |
tree | 053fb33a0df970301b7a057bccc3d9300e9a3425 /Config.mk | |
parent | 6cd1c1ec4490760495eb9d1836abf27efc26c2d0 (diff) | |
download | xen-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.mk | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |