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 <chenxi.mao@suse.com>
This commit is contained in:
Chenxi Mao 2023-03-13 21:59:13 +08:00
parent 769cb31ada
commit 88d9dc65f0

View File

@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language
URL: https://www.python.org/ URL: https://www.python.org/
Version: 3.10.9 Version: 3.10.9
Release: 1 Release: 2
License: Python-2.0 License: Python-2.0
%global branchversion 3.10 %global branchversion 3.10
@ -262,6 +262,7 @@ pushd ${OptimizedBuildDir}
--with-valgrind \ --with-valgrind \
%endif %endif
--without-ensurepip \ --without-ensurepip \
--with-lto \
%{optimizations_flag} %{optimizations_flag}
%make_build EXTRA_CFLAGS="$CFLAGS" %make_build EXTRA_CFLAGS="$CFLAGS"
@ -799,6 +800,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Mon Mar 13 2023 Chenxi Mao <chenxi.mao@suse.com> - 3.10.9-2
- Type:enhancement
- CVE:NA
- SUG:NA
- DESC: Enable link time optimizaitons (LTO) for better performance.
* Mon Jan 30 2023 zhuofeng <zhuofeng2@huawei.com> - 3.10.9-1 * Mon Jan 30 2023 zhuofeng <zhuofeng2@huawei.com> - 3.10.9-1
- Type:enhancement - Type:enhancement
- CVE:NA - CVE:NA