aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/Rules.mk
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-03-27 14:50:17 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-03-27 14:50:17 +0100
commitaacef84b337c59c447472f9102f270e3887254cd (patch)
treef0c388913ea55aa5b6251e7d94d0c45e286d4589 /xen/arch/x86/Rules.mk
parent4d5a404460a70fa985f93a637b792bb5544c54d8 (diff)
downloadxen-aacef84b337c59c447472f9102f270e3887254cd.tar.gz
xen-aacef84b337c59c447472f9102f270e3887254cd.tar.bz2
xen-aacef84b337c59c447472f9102f270e3887254cd.zip
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. Original patch by Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/Rules.mk')
-rw-r--r--xen/arch/x86/Rules.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk
index 86b9f33ab1..97e376a4ab 100644
--- a/xen/arch/x86/Rules.mk
+++ b/xen/arch/x86/Rules.mk
@@ -59,6 +59,4 @@ HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/svm/*.h)
HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/vmx/*.h)
# 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)
-endif
+$(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")