From b958999af17473300e5b3cd26bd16997e21dd644 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 e75dda514f..a6492f5361 100644 --- a/src/makefile.unix +++ b/src/makefile.unix @@ -132,7 +132,7 @@ all: bitcoind -include obj-test/*.P obj/nogui/%.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); \ @@ -142,7 +142,7 @@ bitcoind: $(OBJS:obj/%=obj/nogui/%) $(CXX) $(xCXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) 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