Skip to content

Commit 467abfe

Browse files
authored
gh-110313: Revert "gh-90108: Disable LTO on _freeze_module and _teste… (#110720)
gh-110313: Revert "gh-90108: Disable LTO on _freeze_module and _testembed (#109581)" This reverts commit 3e3a7da.
1 parent 01481f2 commit 467abfe

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
@@ -1076,7 +1076,7 @@ regen-re: $(BUILDPYTHON)
10761076
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/build/generate_re_casefix.py $(srcdir)/Lib/re/_casefix.py
10771077

10781078
Programs/_testembed: Programs/_testembed.o $(LINK_PYTHON_DEPS)
1079-
$(LINKCC) $(PY_LDFLAGS_NOLTO) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS)
1079+
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS)
10801080

10811081
############################################################################
10821082
# "Bootstrap Python" used to run deepfreeze.py
@@ -1177,7 +1177,7 @@ Programs/_freeze_module.o: Programs/_freeze_module.c Makefile
11771177
Modules/getpath_noop.o: $(srcdir)/Modules/getpath_noop.c Makefile
11781178

11791179
Programs/_freeze_module: Programs/_freeze_module.o Modules/getpath_noop.o $(LIBRARY_OBJS_OMIT_FROZEN)
1180-
$(LINKCC) $(PY_LDFLAGS_NOLTO) -o $@ Programs/_freeze_module.o Modules/getpath_noop.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS)
1180+
$(LINKCC) $(PY_CORE_LDFLAGS) -o $@ Programs/_freeze_module.o Modules/getpath_noop.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS)
11811181

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

0 commit comments

Comments
 (0)