From: Joel Rosdahl Date: Sun, 13 Oct 2019 19:58:31 +0000 (+0200) Subject: Add -MQ to compilation flags to make dependency files work properly X-Git-Tag: v4.0~750 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5d0fb9fa6547db5c4de8cde384fdfb9771edd1;p=thirdparty%2Fccache.git Add -MQ to compilation flags to make dependency files work properly Looks like ccache’s own header dependencies have been broken since 4aa357782e48 and nobody noticed. (cherry picked from commit a00b59c86136488d54a83bef10bc5a0f6b37eacf) --- diff --git a/dev.mk.in b/dev.mk.in index e2659c510..e50d59fb0 100644 --- a/dev.mk.in +++ b/dev.mk.in @@ -1,7 +1,7 @@ # GNU make syntax reigns in this file. all_cflags += -Werror -all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d +all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d -MQ $@ all_cxxflags += -Werror A2X = a2x