diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-03-27 14:50:17 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-03-27 14:50:17 +0100 |
commit | aacef84b337c59c447472f9102f270e3887254cd (patch) | |
tree | f0c388913ea55aa5b6251e7d94d0c45e286d4589 /tools/Rules.mk | |
parent | 4d5a404460a70fa985f93a637b792bb5544c54d8 (diff) | |
download | xen-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 'tools/Rules.mk')
-rw-r--r-- | tools/Rules.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk index 3e13eceb55..e087c94dd4 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -24,9 +24,9 @@ CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs) 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) -endif +check-$(CONFIG_X86) = $(call cc-ver-check,CC,0x030400,\ + "Xen requires at least gcc-3.4") +$(eval $(check-y)) %.opic: %.c $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $< |