mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
5968adc414
commit
4c34b2a090
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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
|
||||
|
|
Loading…
Add table
Reference in a new issue