From 3e5cce81e77fae6af91fcf8de11dafe9c8b1744d Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 10 Jul 2011 21:05:45 +0200 Subject: 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. --- common.mak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common.mak') diff --git a/common.mak b/common.mak index da51495a16..8a2aa7cf0d 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)) -- cgit v1.2.3