fix sslarch and libdir for riscv64

Signed-off-by: lvxiaoqian <xiaoqian@nj.iscas.ac.cn>
This commit is contained in:
laokz 2023-06-05 13:02:27 +00:00 committed by Gitee
parent cb9b14987a
commit 31a9e0e042
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
Name: openssl
Epoch: 1
Version: 1.1.1m
Release: 19
Release: 20
Summary: Cryptography and SSL/TLS Toolkit
License: OpenSSL and SSLeay
URL: https://www.openssl.org/
@ -119,6 +119,10 @@ sslarch=%{_os}-%{_target_cpu}
%ifarch x86_64 aarch64
sslflags=enable-ec_nistp_64_gcc_128
%endif
%ifarch riscv64
sslarch=%{_os}64-%{_target_cpu}
sslflags="--libdir=%{_libdir}"
%endif
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack -DPURIFY $RPM_LD_FLAGS"
./Configure \
@ -261,6 +265,9 @@ make test || :
%ldconfig_scriptlets libs
%changelog
* Mon Jun 05 2023 laokz <zhangkai@iscas.ac.cn> - 1:1.1.1m-20
- fix sslarch and libdir for riscv64
* Mon May 15 2023 Xu Yizhou <xuyizhou1@huawei.com> - 1:1.1.1m-19
- Fix SM4-XTS build failure using clang