From ab9d75024a6eda424107bd152cd3081de8784b9f Mon Sep 17 00:00:00 2001 From: whoisxxx Date: Mon, 1 Jun 2020 19:38:14 +0800 Subject: [PATCH] Adapt for RISC-V Signed-off-by: whoisxxx --- openssl.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/openssl.spec b/openssl.spec index 3786b6e..f038f33 100644 --- a/openssl.spec +++ b/openssl.spec @@ -2,7 +2,7 @@ Name: openssl Epoch: 1 Version: 1.1.1d -Release: 9 +Release: 10 Summary: Cryptography and SSL/TLS Toolkit License: OpenSSL and SSLeay URL: https://www.openssl.org/ @@ -60,9 +60,16 @@ sslarch=%{_os}-%{_target_cpu} sslflags=enable-ec_nistp_64_gcc_128 %endif +%ifarch riscv64 +sslarch=linux-generic64 +%endif + RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack -DPURIFY $RPM_LD_FLAGS" ./Configure \ --prefix=%{_prefix} \ +%ifarch riscv64 + --libdir=%{_lib} \ +%endif --openssldir=%{_sysconfdir}/pki/tls ${sslflags} \ zlib enable-camellia enable-seed enable-rfc3779 enable-sctp \ enable-cms enable-md2 enable-rc5 enable-ssl3 enable-ssl3-method \ @@ -187,6 +194,9 @@ make test || : %{_pkgdocdir}/html/ %changelog +* Mon Jun 1 2020 whoisxxx - 1:1.1.1d-10 +- Adapt for RISC-V + * Wed Mar 18 2020 steven - 1:1.1.1d-9 - fix division zero issue which found by oss-fuzz -- Gitee