From 306bd19c4e935c93a44d28c710fadf419243cdda Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Fri, 24 Nov 2023 01:51:25 +0000 Subject: [PATCH] modify the spec to support loongarch64 --- tongsuo.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tongsuo.spec b/tongsuo.spec index ae98d0e..e55e01e 100644 --- a/tongsuo.spec +++ b/tongsuo.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %define install_prefix /opt/tongsuo @@ -42,7 +42,7 @@ Provides: babassl = %{version} A Modern Cryptographic Primitives and Protocols Library. %prep -%setup -q -n Tongsuo-%{version} +%autosetup -n Tongsuo-%{version} -p1 %build sslarch=%{_os}-%{_target_cpu} @@ -56,6 +56,9 @@ sslarch=linux-x86_64 %ifarch aarch64 sslarch=linux-aarch64 %endif +%ifarch longarch64 +sslarch=linux-loongarch64 +%endif ./Configure \ --prefix=%{install_prefix} -Wl,-rpath,%{install_prefix}/lib \ @@ -86,6 +89,9 @@ export QA_RPATHS=$(( 0x0002 )) %dir %{install_prefix} %changelog +* Tue Nov 21 2023 Wenlong Zhang - 8.3.3-3 +- modify the spec to support loongarch64 + * Tue Nov 21 2023 Wenlong Zhang - 8.3.3-2 - add loongarch64 support for tongsuo -- Gitee