[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH for-4.9 1/2] tools/Rules.mk: honour CPPFLAGS in header check



It could contain vital information about header location in a
cross-build environment like stubdom.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
Cc: Steven Haigh <netwiz@xxxxxxxxx>
Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Cc: Julien Grall <Julien.Grall@xxxxxxx>
---
 tools/Rules.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Rules.mk b/tools/Rules.mk
index 7cb28f5c4e..f592241c81 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -226,7 +226,7 @@ INSTALL_PYTHON_PROG = \
 
 headers.chk:
        for i in $(filter %.h,$^); do \
-           $(CC) -x c -ansi -Wall -Werror $(CFLAGS_xeninclude) \
+           $(CC) $(CPPFLAGS) -x c -ansi -Wall -Werror $(CFLAGS_xeninclude) \
                  -S -o /dev/null $$i || exit 1; \
            echo $$i; \
        done >$@.new
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.