]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
autoconf.mk.dep: use target cflags, not host
authorMike Frysinger <vapier@gentoo.org>
Wed, 12 Oct 2011 19:48:00 +0000 (19:48 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 21 Oct 2011 23:20:09 +0000 (01:20 +0200)
The current autoconf.mk.dep rule uses the host cflags when executing the
target compiler (which includes target header files).  We don't want to
mix the target compiler and host compiler flags, so change it to CFLAGS.
Otherwise we get things like -pedantic which the U-Boot source code does
not build with.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Makefile

index 86542514f57d8c7f23c04cddf26da8c40913f3f1..400ef0b5813133b0da7316729c887036699f1c58 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -518,7 +518,7 @@ $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
        @$(XECHO) Generating $@ ; \
        set -e ; \
        : Generate the dependancies ; \
-       $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
+       $(CC) -x c -DDO_DEPS_ONLY -M $(CFLAGS) $(CPPFLAGS) \
                -MQ $(obj)include/autoconf.mk include/common.h > $@
 
 $(obj)include/autoconf.mk: $(obj)include/config.h