summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-09-29 09:26:48 -0700
committerGitHub <noreply@github.com>2017-09-29 09:26:48 -0700
commit6fb0e4a6d085ffa4e4a6daaea042a1cc517fa8bc (patch)
tree1f0c7c45383d3590f43ec7a05ce223944560ac24 /Makefile.pre.in
parentd15108a4789aa1e3c12b2890b770550c90a30913 (diff)
downloadcpython-git-6fb0e4a6d085ffa4e4a6daaea042a1cc517fa8bc.tar.gz
explicitly list objects for the ar command (#3824)
$^ is not portable. closes bpo-31625
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 90eecd8217..e8df8f7355 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -578,7 +578,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
# Build static library
$(LIBRARY): $(LIBRARY_OBJS)
-rm -f $@
- $(AR) $(ARFLAGS) $@ $^
+ $(AR) $(ARFLAGS) $@ $(LIBRARY_OBJS)
libpython$(LDVERSION).so: $(LIBRARY_OBJS)
if test $(INSTSONAME) != $(LDLIBRARY); then \