|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] HOSTCC should be used to set HOSTCFLAGS instead of CC.
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 5fc47ed682d66a5ac36496846507d501a0ec902d
# Parent 57ceee48a0e5c62c3fcdff75549348e60bcad31f
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@xxxxxxxxxxxxx>
diff -r 57ceee48a0e5 -r 5fc47ed682d6 Config.mk
--- a/Config.mk Wed Dec 14 12:07:26 2005
+++ b/Config.mk Wed Dec 14 12:22:24 2005
@@ -38,10 +38,10 @@
EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
endif
-test-gcc-flag = $(shell $(CC) -v --help 2>&1 | grep -q " $(1) " && echo $(1))
+test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
-HOSTCFLAGS += $(call test-gcc-flag,-Wdeclaration-after-statement)
-CFLAGS += $(call test-gcc-flag,-Wdeclaration-after-statement)
+HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
+CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] HOSTCC should be used to set HOSTCFLAGS instead of CC.,
Xen patchbot -unstable <=
|
Previous by Date: |
[Xen-changelog] Ignore .flc, .patch, .orig, and .rej files, and TAGS in the top level., Xen patchbot -unstable |
Next by Date: |
[Xen-changelog] Fix calls to test-gcc-flag, to match previous changeset., Xen patchbot -unstable |
Previous by Thread: |
[Xen-changelog] Ignore .flc, .patch, .orig, and .rej files, and TAGS in the top level., Xen patchbot -unstable |
Next by Thread: |
[Xen-changelog] Fix calls to test-gcc-flag, to match previous changeset., Xen patchbot -unstable |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|