summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-09-03 13:49:30 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-03 13:49:30 -0700
commitd868e4d9ee5c91e9fb9b771950c99ebdd49a8e1e (patch)
tree8b059d034431403a92a038f59c46c3e74f2e8421 /Makefile
parentMerge branch 'ti/tcsh-completion-regression-fix' (diff)
parentMakefile: remove archives before manipulating them with 'ar' (diff)
downloadtgif-d868e4d9ee5c91e9fb9b771950c99ebdd49a8e1e.tar.xz
Merge branch 'sg/make-fix-ar-invocation'
Build fix. * sg/make-fix-ar-invocation: Makefile: remove archives before manipulating them with 'ar'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d1feab008f..429c276058 100644
--- a/Makefile
+++ b/Makefile
@@ -2607,10 +2607,10 @@ $(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o GIT-LDFLAGS $(GITLIBS
$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
$(LIB_FILE): $(LIB_OBJS)
- $(QUIET_AR)$(AR) $(ARFLAGS) $@ $^
+ $(QUIET_AR)$(RM) $@ && $(AR) $(ARFLAGS) $@ $^
$(XDIFF_LIB): $(XDIFF_OBJS)
- $(QUIET_AR)$(AR) $(ARFLAGS) $@ $^
+ $(QUIET_AR)$(RM) $@ && $(AR) $(ARFLAGS) $@ $^
export DEFAULT_EDITOR DEFAULT_PAGER