mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 23:21:31 +00:00
Fix dependency generation for older gcc versions
With gcc 3.3.3 at least, compilation fails with
Generating include/autoconf.mk
gcc: compilation of header file requested
make: *** [include/autoconf.mk] Error 1
since commit 16fe77752e
.
Signed-off-by: Vlad Lungu <vlad@comsys.ro>
This commit is contained in:
parent
cb1c489690
commit
c3aafd8cf8
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -432,7 +432,7 @@ $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
|
||||||
@$(XECHO) Generating include/autoconf.mk ; \
|
@$(XECHO) Generating include/autoconf.mk ; \
|
||||||
set -e ; \
|
set -e ; \
|
||||||
: Generate the dependancies ; \
|
: Generate the dependancies ; \
|
||||||
$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
|
$(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
|
||||||
: Extract the config macros ; \
|
: Extract the config macros ; \
|
||||||
$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
|
$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue