diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-01-13 08:40:42 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-01-13 08:40:42 +0000 |
commit | e2869f9f1c70a6acfe35c16e7e0bd75e2dd93971 (patch) | |
tree | d8e8733ae558b056df9a195ce573e278542ddfe4 /xen/arch/x86/Rules.mk | |
parent | bd3358a451b0580c96915683befdf023deb1ba82 (diff) | |
download | xen-e2869f9f1c70a6acfe35c16e7e0bd75e2dd93971.tar.gz xen-e2869f9f1c70a6acfe35c16e7e0bd75e2dd93971.tar.bz2 xen-e2869f9f1c70a6acfe35c16e7e0bd75e2dd93971.zip |
xen: Do not assign to CFLAGS/AFLAGS/LDFLAGS with :=.
It's not necessary and prevents using rule patterns in these
variables.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/Rules.mk')
-rw-r--r-- | xen/arch/x86/Rules.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk index d16f4dc4bc..5c2198f5cd 100644 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -45,8 +45,9 @@ ifeq ($(TARGET_SUBARCH),x86_64) CFLAGS += -mno-red-zone -fpic -fno-reorder-blocks CFLAGS += -fno-asynchronous-unwind-tables # -fvisibility=hidden reduces -fpic cost, if it's available -CFLAGS += $(call cc-option,$(CC),-fvisibility=hidden,) -CFLAGS := $(subst -fvisibility=hidden,-DGCC_HAS_VISIBILITY_ATTRIBUTE,$(CFLAGS)) +ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n) +CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE +endif x86_32 := n x86_64 := y endif |