!240 开启链接时优化以获得更好的性能

From: @chenxi-mao 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2023-03-16 09:23:30 +00:00 committed by Gitee
commit ded3c83660
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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.9.9 Version: 3.9.9
Release: 22 Release: 23
License: Python-2.0 License: Python-2.0
%global branchversion 3.9 %global branchversion 3.9
@ -296,6 +296,7 @@ pushd ${OptimizedBuildDir}
%endif %endif
%endif %endif
--without-ensurepip \ --without-ensurepip \
--with-lto \
%{optimizations_flag} %{optimizations_flag}
%make_build EXTRA_CFLAGS="$CFLAGS" %make_build EXTRA_CFLAGS="$CFLAGS"
@ -831,6 +832,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Mon Mar 13 2023 Chenxi Mao <chenxi.mao@suse.com> - 3.9.9-23
- Type:enhancement
- CVE:NA
- SUG:NA
- DESC: Enable link time optimizaitons (LTO) for better performance.
* Fri Dec 23 yaoguangzhong <yaoguangzhong@xfusion.com> - 3.9.9-22 * Fri Dec 23 yaoguangzhong <yaoguangzhong@xfusion.com> - 3.9.9-22
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA