ia64/xen-unstable
changeset 8364:5fc47ed682d6
HOSTCC should be used to set HOSTCFLAGS instead of CC.
There is a case where HOSTCC doesn't accept -Wdeclaration-after-statement,
while CC does. It results in a compilation error.
This patch fixes it
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
There is a case where HOSTCC doesn't accept -Wdeclaration-after-statement,
while CC does. It results in a compilation error.
This patch fixes it
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author | emellor@leeni.uk.xensource.com |
---|---|
date | Wed Dec 14 12:22:24 2005 +0000 (2005-12-14) |
parents | 57ceee48a0e5 |
children | 25d0ba51338e |
files | Config.mk |
line diff
1.1 --- a/Config.mk Wed Dec 14 12:07:26 2005 +0000 1.2 +++ b/Config.mk Wed Dec 14 12:22:24 2005 +0000 1.3 @@ -38,10 +38,10 @@ EXTRA_INCLUDES += $(EXTRA_PREFIX)/includ 1.4 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR) 1.5 endif 1.6 1.7 -test-gcc-flag = $(shell $(CC) -v --help 2>&1 | grep -q " $(1) " && echo $(1)) 1.8 +test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2)) 1.9 1.10 -HOSTCFLAGS += $(call test-gcc-flag,-Wdeclaration-after-statement) 1.11 -CFLAGS += $(call test-gcc-flag,-Wdeclaration-after-statement) 1.12 +HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement) 1.13 +CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement) 1.14 1.15 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) 1.16 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))