From a050ca848bd7025f5a81388aea358c28e0921f4a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 13 Sep 2012 20:13:36 +0100 Subject: build: Require GCC 4.1 or later. Centralise the version check in Config.mk. Any more strict version requirements can be added to specific subdirs/arches. Signed-off-by: Keir Fraser --- Config.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Config.mk') diff --git a/Config.mk b/Config.mk index b9c7a9df75..d99b9a1141 100644 --- 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)"; \ -- cgit v1.2.3