diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-12 19:48:00 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-22 01:20:09 +0200 |
commit | 4c34b2a090b8418fd6b2e91b5e9dd8d36206384f (patch) | |
tree | 424326d6e57772b9bf99d06367a0464dc874969e /Makefile | |
parent | 5968adc4146aac76e5597da3b52a51efb42d9179 (diff) | |
download | u-boot-imx-4c34b2a090b8418fd6b2e91b5e9dd8d36206384f.zip u-boot-imx-4c34b2a090b8418fd6b2e91b5e9dd8d36206384f.tar.gz u-boot-imx-4c34b2a090b8418fd6b2e91b5e9dd8d36206384f.tar.bz2 |
autoconf.mk.dep: use target cflags, not host
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |