From f19876b6c5c3e2ade4552d91872bf1707bfed726 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 30 Nov 2016 17:20:35 -0700 Subject: [PATCH] build: remove static libraries before running ar If a library rule is being built, one of the files it contains was rebuilt, so we need to regenerate the whole library anyway. Remove the previous copy of the library to make sure nothing is left from the previous build. Change-Id: I835f721d5bf7cc908c343f47de78bd1f44be58b8 Signed-off-by: Daniel Verkamp --- mk/spdk.common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk index b2b064221..2031ebcd6 100644 --- a/mk/spdk.common.mk +++ b/mk/spdk.common.mk @@ -140,6 +140,7 @@ LINK_CXX=\ # Archive $(OBJS) into $@ (.a) LIB_C=\ $(Q)echo " LIB $(notdir $@)"; \ + rm -f $@; \ ar crDs $@ $(OBJS) # Clean up generated files listed as arguments plus a default list