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 /tools | |
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 'tools')
-rw-r--r-- | tools/blktap/drivers/Makefile | 1 | ||||
-rw-r--r-- | tools/blktap/lib/Makefile | 2 | ||||
-rw-r--r-- | tools/libxc/Makefile | 1 | ||||
-rw-r--r-- | tools/xcutils/Makefile | 2 |
4 files changed, 2 insertions, 4 deletions
diff --git a/tools/blktap/drivers/Makefile b/tools/blktap/drivers/Makefile index c077c7221e..fca48b6ced 100644 --- a/tools/blktap/drivers/Makefile +++ b/tools/blktap/drivers/Makefile @@ -10,7 +10,6 @@ LIBAIO_DIR = ../../libaio/src CFLAGS += -Werror CFLAGS += -Wno-unused -CFLAGS += -fno-strict-aliasing CFLAGS += -I $(XEN_LIBXC) -I $(LIBAIO_DIR) CFLAGS += $(INCLUDES) -I. -I../../xenstore CFLAGS += -D_GNU_SOURCE diff --git a/tools/blktap/lib/Makefile b/tools/blktap/lib/Makefile index 833887ade0..f5621e1e23 100644 --- a/tools/blktap/lib/Makefile +++ b/tools/blktap/lib/Makefile @@ -16,7 +16,7 @@ SRCS += xenbus.c blkif.c xs_api.c CFLAGS += -Werror CFLAGS += -Wno-unused -CFLAGS += -fno-strict-aliasing -fPIC +CFLAGS += -fPIC # get asprintf(): CFLAGS += -D _GNU_SOURCE diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index ddf99ed684..102653ff95 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -57,7 +57,6 @@ GUEST_SRCS-$(CONFIG_POWERPC) += xc_dom_powerpc.c -include $(XEN_TARGET_ARCH)/Makefile CFLAGS += -Werror -Wmissing-prototypes -CFLAGS += -fno-strict-aliasing CFLAGS += $(INCLUDES) -I. -I../xenstore # Needed for posix_fadvise64() in xc_linux.c diff --git a/tools/xcutils/Makefile b/tools/xcutils/Makefile index f8ac92f7d9..df7ee8613f 100644 --- a/tools/xcutils/Makefile +++ b/tools/xcutils/Makefile @@ -15,7 +15,7 @@ PROGRAMS_INSTALL_DIR = /usr/$(LIBDIR)/xen/bin INCLUDES += -I $(XEN_LIBXC) -I $(XEN_XENSTORE) -CFLAGS += -Werror -fno-strict-aliasing +CFLAGS += -Werror CFLAGS += $(INCLUDES) # Make gcc generate dependencies. |