Projects
openEuler:Mainline
python3
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
_service:tar_scm:python3.spec
Changed
@@ -3,7 +3,7 @@ URL: https://www.python.org/ Version: 3.10.9 -Release: 3 +Release: 4 License: Python-2.0 %global branchversion 3.10 @@ -201,15 +201,26 @@ %global optimizations_flag "--disable-optimizations" %endif +%if "%toolchain" == "clang" +%global extension_cflags "-gdwarf-4" +%global extension_ldflags "" +%global build_ldflags "" +%global build_cflags "-gdwarf-4" +%else %global extension_cflags "" %global extension_ldflags "" +%endif 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 CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv" export CPPFLAGS="$(pkg-config --cflags-only-I libffi)" export OPT="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv" +%if "%toolchain" == "clang" +export LINKCC="clang" +%else export LINKCC="gcc" +%endif export CFLAGS="$CFLAGS $(pkg-config --cflags openssl)" export LDFLAGS="%{extension_ldflags} -g $(pkg-config --libs-only-L openssl)" export LDFLAGS_NODIST="%{build_ldflags} -g $(pkg-config --libs-only-L openssl)" @@ -237,6 +248,9 @@ --with-valgrind \ %endif --without-ensurepip \ +%if "%toolchain" == "gcc" + --with-lto \ +%endif --with-pydebug %make_build EXTRA_CFLAGS="$CFLAGS -Og" @@ -266,7 +280,9 @@ --with-valgrind \ %endif --without-ensurepip \ +%if "%toolchain" == "gcc" --with-lto \ +%endif %{optimizations_flag} %make_build EXTRA_CFLAGS="$CFLAGS" @@ -804,6 +820,12 @@ %{_mandir}/*/* %changelog +* Thu Jun 01 2023 Chenxi Mao <chenxi.mao@suse.com> - 3.10.9-4 +- Type:enhancement +- CVE:NA +- SUG:NA +- DESC:Support build python via clang. + * Thu Apr 06 2023 shixuantong <shixuantong1@huawei.com> - 3.10.9-3 - Type:CVE - CVE:CVE-2023-24329
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2