[FFmpeg-cvslog] build: remove duplicates from order-only directory prerequisite list

Diego Biurrun git at videolan.org
Mon Jul 11 05:52:41 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Jul 10 21:05:45 2011 +0200| [3e5cce81e77fae6af91fcf8de11dafe9c8b1744d] | committer: Diego Biurrun

build: remove duplicates from order-only directory prerequisite list

This reduces startup latency for make invocations, which is especially
noticeable on systems that are slow or have slow I/O, like Windows.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e5cce81e77fae6af91fcf8de11dafe9c8b1744d
---

 common.mak |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common.mak b/common.mak
index da51495..8a2aa7c 100644
--- a/common.mak
+++ b/common.mak
@@ -39,9 +39,9 @@ $(HOSTOBJS): %.o: %.c
 $(HOSTPROGS): %$(HOSTEXESUF): %.o
 	$(HOSTCC) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS)
 
-$(OBJS):     | $(dir $(OBJS))
-$(HOSTOBJS): | $(dir $(HOSTOBJS))
-$(TESTOBJS): | $(dir $(TESTOBJS))
+$(OBJS):     | $(sort $(dir $(OBJS)))
+$(HOSTOBJS): | $(sort $(dir $(HOSTOBJS)))
+$(TESTOBJS): | $(sort $(dir $(TESTOBJS)))
 $(TOOLOBJS): | tools
 
 OBJDIRS := $(OBJDIRS) $(dir $(OBJS) $(HOSTOBJS) $(TESTOBJS))



More information about the ffmpeg-cvslog mailing list