From: Markus Armbruster Date: Tue, 28 Oct 2008 23:27:23 +0000 (-0400) Subject: Explicitly specify dependency output file with gcc -MF X-Git-Tag: v4.3.19~24 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=0d48dae06bae69aba770a6ba93b672114f76d438 Explicitly specify dependency output file with gcc -MF Used to work without that, but somehow no longer does. --- diff --git a/Make.mk b/Make.mk index 803ebf2f3..bbe1f09f5 100644 --- a/Make.mk +++ b/Make.mk @@ -241,7 +241,7 @@ dist: dist-source dist-client dist-info # addition to %.o. ifeq ($(how_to_dep),fast) %.o: %.c - $(COMPILE.c) -MT $@ -MMD -MP $(OUTPUT_OPTION) $< \ + $(COMPILE.c) -MT $@ -MMD -MP -MF $(@:.o=.d) $(OUTPUT_OPTION) $< \ || { rm -f $(@:.o=.d) $@; false; } # Why the rm? If gcc's preprocessor chokes, it leaves an empty # dependency file behind, and doesn't touch the object file. If an