add compile option -funsigned-char

(cherry picked from commit 657015b2a005d24735fe5d6d0efef03c8e08bd53)
This commit is contained in:
zhuofeng 2022-12-02 11:18:34 +08:00 committed by openeuler-sync-bot
parent 732c2718dc
commit ac1b909501

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: 20 Release: 21
License: Python-2.0 License: Python-2.0
%global branchversion 3.9 %global branchversion 3.9
@ -236,6 +236,10 @@ export CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"
export LDFLAGS="%{extension_ldflags} -g $(pkg-config --libs-only-L openssl)" export LDFLAGS="%{extension_ldflags} -g $(pkg-config --libs-only-L openssl)"
export LDFLAGS_NODIST="%{build_ldflags} -g $(pkg-config --libs-only-L openssl)" export LDFLAGS_NODIST="%{build_ldflags} -g $(pkg-config --libs-only-L openssl)"
%ifarch %{arm} aarch64
export CFLAGS="$CFLAGS -funsigned-char"
%endif
DebugBuildDir=build/debug DebugBuildDir=build/debug
mkdir -p ${DebugBuildDir} mkdir -p ${DebugBuildDir}
pushd ${DebugBuildDir} pushd ${DebugBuildDir}
@ -825,6 +829,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Fri Dec 02 zhuofeng <zhuofeng2@huawei.com> - 3.9.9-21
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:add compile option -funsigned-char
* Thu Nov 10 2022 huajingyun <huajingyun@loongson.cn> - 3.9.9-20 * Thu Nov 10 2022 huajingyun <huajingyun@loongson.cn> - 3.9.9-20
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA