Skip to content

Commit 43950a6

Browse files
committed
pythongh-110313: Revert "pythongh-90108: Disable LTO on _freeze_module and _testembed (python#109581)"
This reverts commit 3e3a7da.
1 parent eb50cd3 commit 43950a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ regen-re: $(BUILDPYTHON)
10601060
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/build/generate_re_casefix.py $(srcdir)/Lib/re/_casefix.py
10611061

10621062
Programs/_testembed: Programs/_testembed.o $(LINK_PYTHON_DEPS)
1063-
$(LINKCC) $(PY_LDFLAGS_NOLTO) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS)
1063+
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS)
10641064

10651065
############################################################################
10661066
# "Bootstrap Python" used to run deepfreeze.py
@@ -1161,7 +1161,7 @@ Programs/_freeze_module.o: Programs/_freeze_module.c Makefile
11611161
Modules/getpath_noop.o: $(srcdir)/Modules/getpath_noop.c Makefile
11621162

11631163
Programs/_freeze_module: Programs/_freeze_module.o Modules/getpath_noop.o $(LIBRARY_OBJS_OMIT_FROZEN)
1164-
$(LINKCC) $(PY_LDFLAGS_NOLTO) -o $@ Programs/_freeze_module.o Modules/getpath_noop.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS)
1164+
$(LINKCC) $(PY_CORE_LDFLAGS) -o $@ Programs/_freeze_module.o Modules/getpath_noop.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS)
11651165

11661166
# We manually freeze getpath.py rather than through freeze_modules
11671167
Python/frozen_modules/getpath.h: Modules/getpath.py $(FREEZE_MODULE_BOOTSTRAP_DEPS)

0 commit comments

Comments
 (0)