From 6fb0e4a6d085ffa4e4a6daaea042a1cc517fa8bc Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 29 Sep 2017 09:26:48 -0700 Subject: [PATCH] explicitly list objects for the ar command (#3824) $^ is not portable. closes bpo-31625 --- Makefile.pre.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \