Explicitly specify dependency output file with gcc -MF
Used to work without that, but somehow no longer does.
This commit is contained in:
parent
14319b89ec
commit
0d48dae06b
1 changed files with 1 additions and 1 deletions
2
Make.mk
2
Make.mk
|
@ -241,7 +241,7 @@ dist: dist-source dist-client dist-info
|
||||||
# addition to %.o.
|
# addition to %.o.
|
||||||
ifeq ($(how_to_dep),fast)
|
ifeq ($(how_to_dep),fast)
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(COMPILE.c) -MT $@ -MMD -MP $(OUTPUT_OPTION) $< \
|
$(COMPILE.c) -MT $@ -MMD -MP -MF $(@:.o=.d) $(OUTPUT_OPTION) $< \
|
||||||
|| { rm -f $(@:.o=.d) $@; false; }
|
|| { rm -f $(@:.o=.d) $@; false; }
|
||||||
# Why the rm? If gcc's preprocessor chokes, it leaves an empty
|
# Why the rm? If gcc's preprocessor chokes, it leaves an empty
|
||||||
# dependency file behind, and doesn't touch the object file. If an
|
# dependency file behind, and doesn't touch the object file. If an
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue