summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVlad Lungu <vlad@comsys.ro>2008-04-11 21:20:14 +0300
committerWolfgang Denk <wd@denx.de>2008-04-18 00:06:41 -0700
commitc3aafd8cf814e33a77de81c2f22b8c772216a3cc (patch)
tree762604b69dacb8b8f436e2b4fe7498a52869ce77 /Makefile
parentcb1c4896905ab22fcd982e6a8a539f0031942e71 (diff)
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 16fe77752eee099b9fb61ed73460e51cc94b37ba. Signed-off-by: Vlad Lungu <vlad@comsys.ro>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e56889e2283..ff33b4cec0b 100644
--- a/Makefile
+++ b/Makefile
@@ -432,7 +432,7 @@ $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
@$(XECHO) Generating include/autoconf.mk ; \
set -e ; \
: 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 ; \
$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@