explicitly list objects for the ar command (#3824)

$^ is not portable.

closes bpo-31625
This commit is contained in:
Benjamin Peterson 2017-09-29 09:26:48 -07:00 committed by GitHub
parent d15108a478
commit 6fb0e4a6d0
1 changed files with 1 additions and 1 deletions

View File

@ -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 \