From 88d9dc65f0ecd2baf070b6760448a221ab97f690 Mon Sep 17 00:00:00 2001 From: Chenxi Mao Date: Mon, 13 Mar 2023 21:59:13 +0800 Subject: [PATCH] Enable LTO for better performance Link:https://src.fedoraproject.org/rpms/python3.10/blob/rawhide/f/python3.10.spec#_719 Signed-off-by: Chenxi Mao --- python3.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python3.spec b/python3.spec index ed9c446..e25870d 100644 --- a/python3.spec +++ b/python3.spec @@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language URL: https://www.python.org/ Version: 3.10.9 -Release: 1 +Release: 2 License: Python-2.0 %global branchversion 3.10 @@ -262,6 +262,7 @@ pushd ${OptimizedBuildDir} --with-valgrind \ %endif --without-ensurepip \ + --with-lto \ %{optimizations_flag} %make_build EXTRA_CFLAGS="$CFLAGS" @@ -799,6 +800,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_mandir}/*/* %changelog +* Mon Mar 13 2023 Chenxi Mao - 3.10.9-2 +- Type:enhancement +- CVE:NA +- SUG:NA +- DESC: Enable link time optimizaitons (LTO) for better performance. + * Mon Jan 30 2023 zhuofeng - 3.10.9-1 - Type:enhancement - CVE:NA