diff options
author | Matt Corallo <matt@bluematt.me> | 2012-07-03 17:30:43 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2012-07-03 17:50:35 +0200 |
commit | 4d9c55da72e2bcf40f79a9d818dcef04e8308b35 (patch) | |
tree | a358bb48c256284cccd03f0b6f135c343752579a /src/makefile.unix | |
parent | da1103f4f8288cffc9ea475254fdeb258f04de77 (diff) |
Work around a distcc bug where -MMD output isn't copied.
Diffstat (limited to 'src/makefile.unix')
-rw-r--r-- | src/makefile.unix | 4 |
1 files changed, 2 insertions, 2 deletions
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); \ |