add safe compilation option of FS

This commit is contained in:
shixuantong 2022-06-20 16:31:33 +08:00
parent faeae4b245
commit 9dcec59254

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: 8 Release: 9
License: Python License: Python
%global branchversion 3.9 %global branchversion 3.9
@ -202,7 +202,7 @@ topdir=$(pwd)
%global extension_cflags "" %global extension_cflags ""
%global extension_ldflags "" %global extension_ldflags ""
export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong" export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2"
export CFLAGS_NODIST="%{build_cflags} -D_GNU_SOURCE -fPIC -fwrapv" export CFLAGS_NODIST="%{build_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv" export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv"
export CPPFLAGS="$(pkg-config --cflags-only-I libffi)" export CPPFLAGS="$(pkg-config --cflags-only-I libffi)"
@ -797,6 +797,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Mon Jun 20 2022 shixuantong <shixuantong@h-partners.com> - 3.9.9-9
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:add safe compilation option of FS
* Mon May 16 2022 shixuantong <shixuantong@h-partners.com> - 3.9.9-8 * Mon May 16 2022 shixuantong <shixuantong@h-partners.com> - 3.9.9-8
- Type:CVE - Type:CVE
- CVE:CVE-2015-20107 - CVE:CVE-2015-20107