[PATCH] Remove bogus dependency

Mike Hommey mh+jemalloc at glandium.org
Thu Apr 12 08:21:58 PDT 2012


From: Mike Hommey <mh at glandium.org>

test/bitmap.c #includes src/bitmap.c, which is correctly detected by gcc -MM,
but building test/bitmap.o doesn't require src/bitmap.o.
---
 Makefile.in |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index a01e5e9..1f33b19 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -133,9 +133,6 @@ test/%.o: $(srcroot)test/%.c
 	$(CC) $(CFLAGS) -c $(CPPFLAGS) -Itest -o $@ $<
 	@$(SHELL) -ec "$(CC) -MM $(CPPFLAGS) -Itest $< | sed \"s/\($(subst /,\/,$(notdir $(basename $@)))\)\.o\([ :]*\)/$(subst /,\/,$(strip $(dir $@)))\1.o \2/g\" > $(@:%.o=%.d)"
 
-# Automatic dependency generation misses #include "*.c".
-test/bitmap.o : src/bitmap.o
-
 test/%: test/%.o \
 		 lib/libjemalloc at install_suffix@.$(SO)
 	@mkdir -p $(@D)
-- 
1.7.9.5




More information about the jemalloc-discuss mailing list