aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Rules.mk
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-03-17 12:04:48 +0000
committerKeir Fraser <keir@xensource.com>2007-03-17 12:04:48 +0000
commitcfcf0ae28495b1fff0f16981822b1a93b9336c7a (patch)
tree0b5c11150b92066f53d41dc90dc9fb588724ad3a /tools/Rules.mk
parent36200329b198717624bfa37f410e3a650168a9c7 (diff)
downloadxen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.tar.gz
xen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.tar.bz2
xen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.zip
Xen and tools now require gcc 3.4+ on x86.
- gcc-3.2 cannot handle some multi-line assertions in the Xen sources. Noone noticed. - gcc-3.3 has problems with alignment constraints inside typedefs. gcc 3.4.0 is now three years old so I hope that everyone has an up-to-date compiler, or can obtain a more up-to-date package for their distribution. If not we may need to fall back to supporting gcc-3.3.x as well. Also clean up the way we do version checks, using the power of awk. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/Rules.mk')
-rw-r--r--tools/Rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk
index df3b231a1a..3e13eceb55 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -23,6 +23,11 @@ LDFLAGS += $(shell getconf LFS_LDFLAGS)
CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)
CFLAGS += $(CFLAGS-y)
+# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
+ifeq ($(CONFIG_X86)$(call cc-ver,$(CC),0x030400),yn)
+$(error Xen tools require at least gcc-3.4)
+endif
+
%.opic: %.c
$(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<