]> xenbits.xensource.com Git - xen.git/commitdiff
build: Require GCC 4.1 or later.
authorKeir Fraser <keir@xen.org>
Thu, 13 Sep 2012 19:13:36 +0000 (20:13 +0100)
committerKeir Fraser <keir@xen.org>
Thu, 13 Sep 2012 19:13:36 +0000 (20:13 +0100)
Centralise the version check in Config.mk. Any more strict version
requirements can be added to specific subdirs/arches.

Signed-off-by: Keir Fraser <keir@xen.org>
Config.mk
tools/Rules.mk
xen/arch/arm/Rules.mk
xen/arch/x86/Rules.mk

index b9c7a9df755efc56ab14c3149feaa9108bbb3c2c..d99b9a11419d435021c99767b0133594e9c01fee 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -119,6 +119,10 @@ define cc-ver-check-closure
     endif
 endef
 
+# Require GCC v4.1+
+check-$(gcc) = $(call cc-ver-check,CC,0x040100,"Xen requires at least gcc-4.1")
+$(eval $(check-y))
+
 define buildmakevars2shellvars
     export PREFIX="$(PREFIX)";                                            \
     export XEN_SCRIPT_DIR="$(XEN_SCRIPT_DIR)";                            \
index f4e84c1b7760a3bb29d2803df36ca0bfd5d2d4a7..8d55e038f0587f3c44d2d18a6df6be633cfcc792 100644 (file)
@@ -78,11 +78,6 @@ CFLAGS += $(CFLAGS-y)
 
 CFLAGS += $(EXTRA_CFLAGS_XEN_TOOLS)
 
-# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-check-$(CONFIG_X86) = $(call cc-ver-check,CC,0x030400,\
-                        "Xen requires at least gcc-3.4")
-$(eval $(check-y))
-
 INSTALL_PYTHON_PROG = \
        $(XEN_ROOT)/tools/python/install-wrap "$(PYTHON_PATH)" $(INSTALL_PROG)
 
index d99c8c6d25c940a9fce839e8629ef61801222c9a..a45c654346b1f5da8ee27572e5d1bfb5f510b940 100644 (file)
@@ -25,7 +25,3 @@ CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
 endif
 
 CFLAGS += -mcpu=cortex-a15 -mfpu=vfpv3 -mfloat-abi=softfp
-
-# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-check-$(gcc) = $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
-$(eval $(check-y))
index 6ab185f666aeb584fa8548642b1063c001aff06d..963850fe2af1f39505347658d3ea0dd69bef1fbc 100644 (file)
@@ -50,7 +50,3 @@ CFLAGS += -fno-asynchronous-unwind-tables
 ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n)
 CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
 endif
-
-# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-check-$(gcc) = $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
-$(eval $(check-y))