From 4d9c55da72e2bcf40f79a9d818dcef04e8308b35 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 3 Jul 2012 17:30:43 +0200 Subject: Work around a distcc bug where -MMD output isn't copied. --- src/makefile.unix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/makefile.unix') diff --git a/src/makefile.unix b/src/makefile.unix index 420c7ac3fa..6d9bf276df 100644 --- a/src/makefile.unix +++ b/src/makefile.unix @@ -125,7 +125,7 @@ version.cpp: obj/build.h DEFS += -DHAVE_BUILD_INFO obj/%.o: %.cpp - $(CXX) -c $(xCXXFLAGS) -MMD -o $@ $< + $(CXX) -c $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -o $@ $< @cp $(@:%.o=%.d) $(@:%.o=%.P); \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ @@ -137,7 +137,7 @@ bitcoind: $(OBJS:obj/%=obj/%) TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) obj-test/%.o: test/%.cpp - $(CXX) -c $(TESTDEFS) $(xCXXFLAGS) -MMD -o $@ $< + $(CXX) -c $(TESTDEFS) $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -o $@ $< @cp $(@:%.o=%.d) $(@:%.o=%.P); \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ -- cgit v1.2.3