summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-12 20:51:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-10-12 20:51:25 (GMT)
commit5586bd2de231a6b504162107a65c2de6ea7959d2 (patch)
treeab26f9b2956cebf384a86484e98bd22e75d2fe66 /Makefile
parent4e408f1060bc677a7d6f17d349f05203ef4b76f3 (diff)
parent325b06deda688e5110a134a4f8d390ed48af7b80 (diff)
downloadgit-5586bd2de231a6b504162107a65c2de6ea7959d2.zip
git-5586bd2de231a6b504162107a65c2de6ea7959d2.tar.gz
git-5586bd2de231a6b504162107a65c2de6ea7959d2.tar.bz2
Merge branch 'sg/make-fix-ar-invocation' into maint
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 9573190..a98e298 100644
--- a/Makefile
+++ b/Makefile
@@ -2603,10 +2603,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