From: "Jan Beulich" Subject: [PATCH] defer error generation for too old gcc Date: Thu, 22 Mar 2007 14:10:06 +0000 Message-ID: <46029C4E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org In order to allow building as non-root with a non-default CC (which root may not have access to through its $PATH), defer the generation of an error until CC is actually needed. Signed-off-by: Jan Beulich Index: 2007-03-19/tools/Rules.mk =================================================================== --- 2007-03-19.orig/tools/Rules.mk 2007-03-19 13:26:13.000000000 +0100 +++ 2007-03-19/tools/Rules.mk 2007-03-22 10:24:53.000000000 +0100 @@ -25,7 +25,8 @@ 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) +override CC=echo "Xen requires at least gcc-3.4" >&2; exit 1; +cc-option := n endif %.opic: %.c Index: 2007-03-19/xen/arch/x86/Rules.mk =================================================================== --- 2007-03-19.orig/xen/arch/x86/Rules.mk 2007-03-19 10:22:14.000000000 +0100 +++ 2007-03-19/xen/arch/x86/Rules.mk 2007-03-22 10:24:29.000000000 +0100 @@ -60,5 +60,6 @@ HDRS += $(wildcard $(BASEDIR)/include/as # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers) ifneq ($(call cc-ver,$(CC),0x030400),y) -$(error Xen requires at least gcc-3.4) +override CC=echo "Xen requires at least gcc-3.4" >&2; exit 1; +cc-option := n endif