[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] defer error generation for too old gcc



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 <jbeulich@xxxxxxxxxx>

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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.