From 22559647516f7859de9e0b23b83486644772e211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=B0=8F=E4=BC=99?= <412998149@qq.com> Date: Fri, 27 Oct 2023 08:12:04 +0000 Subject: [PATCH 1/2] test lto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 编译小伙 <412998149@qq.com> --- python3.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python3.spec b/python3.spec index 6da98d2..ede1c9d 100644 --- a/python3.spec +++ b/python3.spec @@ -278,7 +278,8 @@ pushd ${DebugBuildDir} %endif %endif --without-ensurepip \ - --with-pydebug + --with-pydebug \ + --with-lto %make_build EXTRA_CFLAGS="$CFLAGS -Og" -- Gitee From 494450a5a61f29cbd57e06c9915a0cd982214185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=B0=8F=E4=BC=99?= <412998149@qq.com> Date: Sat, 28 Oct 2023 01:31:02 +0000 Subject: [PATCH 2/2] enable lto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 编译小伙 <412998149@qq.com> --- python3.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python3.spec b/python3.spec index ede1c9d..a8dcd91 100644 --- a/python3.spec +++ b/python3.spec @@ -309,6 +309,7 @@ pushd ${OptimizedBuildDir} %endif %endif --without-ensurepip \ + --with-lto \ %{optimizations_flag} %make_build EXTRA_CFLAGS="$CFLAGS" -- Gitee