Files
MINGW-packages/mingw-w64-python3/2060-pass-gen-profile-ldflags.patch
Christoph Reiter 28fc77f0e8 python3: build with PGO+LTO
It gives a nice 15-20% speedup with the pyperformance benchmarks.
Build time increases from ~12 minutes to ~20 minutes.
2019-07-23 07:34:53 +02:00

12 lines
487 B
Diff

--- Python-3.7.4/Makefile.pre.in.orig 2019-07-22 09:15:44.386184900 +0200
+++ Python-3.7.4/Makefile.pre.in 2019-07-22 08:57:45.643259600 +0200
@@ -713,7 +713,7 @@
$(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS) python_nt.o
if test -n "$(DLLLIBRARY)"; then \
$(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
- $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) python_nt.o; \
+ $(LIBS) $(LDFLAGS_NODIST) $(MODLIBS) $(SYSLIBS) $(LDLAST) python_nt.o; \
else true; \
fi