aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-11-23 11:15:18 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-11-23 11:15:18 +0100
commit9d401b35f071a91e7281fcdd4a5ceba0dc125ba4 (patch)
treef8f94a3e07c89102cef3c04857fefcdda74a611e /xen/Rules.mk
parent1366ee55cc401bf8b1fbedf50451765cd577c1bf (diff)
downloadxen-9d401b35f071a91e7281fcdd4a5ceba0dc125ba4.tar.gz
xen-9d401b35f071a91e7281fcdd4a5ceba0dc125ba4.tar.bz2
xen-9d401b35f071a91e7281fcdd4a5ceba0dc125ba4.zip
Add -Wdeclaration-after-statement to CFLAGS only if the
compiler supports it. Move test-gcc-flag function to Config.mk where it can be used by any component of the build. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r--xen/Rules.mk2
1 files changed, 0 insertions, 2 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 0f43b4efa9..f9721f03a2 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -43,8 +43,6 @@ CFLAGS += -DACM_SECURITY
endif
ALL_OBJS += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o
-test-gcc-flag = $(shell $(CC) -v --help 2>&1 | grep -q " $(1) " && echo $(1))
-
include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
ifneq ($(debug),y)