[Python-checkins] explicitly list objects for the ar command (#3824)
Benjamin Peterson
webhook-mailer at python.org
Fri Sep 29 12:26:51 EDT 2017
https://github.com/python/cpython/commit/6fb0e4a6d085ffa4e4a6daaea042a1cc517fa8bc
commit: 6fb0e4a6d085ffa4e4a6daaea042a1cc517fa8bc
branch: master
author: Benjamin Peterson <benjamin at python.org>
committer: GitHub <noreply at github.com>
date: 2017-09-29T09:26:48-07:00
summary:
explicitly list objects for the ar command (#3824)
$^ is not portable.
closes bpo-31625
files:
M Makefile.pre.in
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 90eecd82173..e8df8f7355e 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 \
More information about the Python-checkins
mailing list