aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/Rules.mk
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@citrix.com>2011-03-08 10:23:52 +0000
committerTim Deegan <Tim.Deegan@citrix.com>2011-03-08 10:23:52 +0000
commit87c604dae49a97875c69069fb2ad5d15a5bade7e (patch)
treef4ef9ba3e38a3529a4873fc1ac4903989f2ba04a /xen/arch/x86/Rules.mk
parent07d9f1dd0d623acc309c8c1f1731e62d141b029b (diff)
downloadxen-87c604dae49a97875c69069fb2ad5d15a5bade7e.tar.gz
xen-87c604dae49a97875c69069fb2ad5d15a5bade7e.tar.bz2
xen-87c604dae49a97875c69069fb2ad5d15a5bade7e.zip
Tidy makefiles to use CFLAGS-$(foo) idiom instead of ifeq.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/Rules.mk')
-rw-r--r--xen/arch/x86/Rules.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk
index f951398b60..df7cf34cce 100644
--- a/xen/arch/x86/Rules.mk
+++ b/xen/arch/x86/Rules.mk
@@ -14,9 +14,7 @@ supervisor_mode_kernel ?= n
# Solaris grabs stdarg.h and friends from the system include directory.
# Clang likewise.
ifneq ($(XEN_OS),SunOS)
-ifneq ($(clang),y)
-CFLAGS += -nostdinc
-endif
+CFLAGS-$(gcc) += -nostdinc
endif
CFLAGS += -fno-builtin -fno-common -Wredundant-decls
@@ -52,7 +50,7 @@ x86_32 := n
x86_64 := y
endif
-ifneq ($(clang),y)
+ifeq ($(gcc),y)
# Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
$(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
endif