diff --git a/fix-add-loongarch64-target.patch b/fix-add-loongarch64-target.patch new file mode 100644 index 0000000000000000000000000000000000000000..527e7daa52f0080ddb3b28f909178f5e677d7d44 --- /dev/null +++ b/fix-add-loongarch64-target.patch @@ -0,0 +1,30 @@ +From 5fd4cc31c0eba0813a005d3559afc1b42df8ee32 Mon Sep 17 00:00:00 2001 +From: Shi Pujin +Date: Wed, 16 Feb 2022 10:53:56 +0800 +Subject: [PATCH] Add loongarch64 target + +--- + Configurations/10-main.conf | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf +index 61c6689..7102c95 100644 +--- a/Configurations/10-main.conf ++++ b/Configurations/10-main.conf +@@ -761,6 +761,13 @@ my %targets = ( + perlasm_scheme => "linux64", + }, + ++ # loongarch64 below refers to contemporary LOONGARCH Architecture ++ # specifications, ++ "linux-loongarch64" => { ++ inherit_from => [ "linux-generic64"], ++ perlasm_scheme => "linux64", ++ }, ++ + #### IA-32 targets... + #### These two targets are a bit aged and are to be used on older Linux + #### machines where gcc doesn't understand -m32 and -m64 +-- +2.27.0 + diff --git a/openssl.spec b/openssl.spec index 2a18bf9f9976ee386764f58b0bb08d97c41264d4..4708ad1049cf7e4ce105d710f00898d54425c6fe 100644 --- a/openssl.spec +++ b/openssl.spec @@ -2,7 +2,7 @@ Name: openssl Epoch: 1 Version: 1.1.1m -Release: 11 +Release: 12 Summary: Cryptography and SSL/TLS Toolkit License: OpenSSL and SSLeay URL: https://www.openssl.org/ @@ -20,6 +20,7 @@ Patch9: Update-expired-SCT-certificates.patch Patch10: ct_test.c-Update-the-epoch-time.patch Patch11: Fix-reported-performance-degradation-on-aarch64.patch Patch12: backport-Update-further-expiring-certificates-that-affect-tes.patch +Patch13: fix-add-loongarch64-target.patch BuildRequires: gcc perl make lksctp-tools-devel coreutils util-linux zlib-devel Requires: coreutils %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} @@ -80,6 +81,9 @@ sslarch=%{_os}-%{_target_cpu} %ifarch x86_64 aarch64 sslflags=enable-ec_nistp_64_gcc_128 %endif +%ifarch loongarch64 +sslflags="--libdir=%{_libdir}" +%endif RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack -DPURIFY $RPM_LD_FLAGS" ./Configure \ @@ -222,6 +226,9 @@ make test || : %ldconfig_scriptlets libs %changelog +* Mon Nov 14 2022 zhaozhen - 1:1.1.1m-12 +- Add loongarch support + * Thu Oct 27 2022 steven_ygui - 1:1.1.1m-11 - Backport some patches