aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/Rules.mk
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-01-13 08:59:49 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-01-13 08:59:49 +0000
commit6b1ce5497dcb3becd432853e1666a0f01abe8829 (patch)
tree4b665419024be40be5c8dac9906d4c991631b904 /xen/arch/x86/Rules.mk
parente2869f9f1c70a6acfe35c16e7e0bd75e2dd93971 (diff)
downloadxen-6b1ce5497dcb3becd432853e1666a0f01abe8829.tar.gz
xen-6b1ce5497dcb3becd432853e1666a0f01abe8829.tar.bz2
xen-6b1ce5497dcb3becd432853e1666a0f01abe8829.zip
build: Define cc-option-add to immediately add options to CFLAGS
without deferring the test execution of CC. This avoids extra executions of CC every time CFLAGS is expanded. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/Rules.mk')
-rw-r--r--xen/arch/x86/Rules.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk
index 5c2198f5cd..e9e1d5b952 100644
--- a/xen/arch/x86/Rules.mk
+++ b/xen/arch/x86/Rules.mk
@@ -26,9 +26,9 @@ CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
CFLAGS += -msoft-float
# Disable PIE/SSP if GCC supports them. They can break us.
-CFLAGS += $(call cc-option,$(CC),-nopie,)
-CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
-CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
+$(call cc-option-add,CFLAGS,CC,-nopie)
+$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
+$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
ifeq ($(supervisor_mode_kernel),y)
CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1