Fix build error for loongarch64
(cherry picked from commit 480902f6c75810e02905098ce675c303d7d76bdf)
This commit is contained in:
parent
c399ceeacd
commit
e23d801256
31
fix-add-loongarch64-target.patch
Normal file
31
fix-add-loongarch64-target.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 5fd4cc31c0eba0813a005d3559afc1b42df8ee32 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Shi Pujin <shipujin.t@gmail.com>
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
Name: openssl
|
Name: openssl
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 3.0.12
|
Version: 3.0.12
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Cryptography and SSL/TLS Toolkit
|
Summary: Cryptography and SSL/TLS Toolkit
|
||||||
License: OpenSSL and SSLeay
|
License: OpenSSL and SSLeay
|
||||||
URL: https://www.openssl.org/
|
URL: https://www.openssl.org/
|
||||||
@ -31,6 +31,7 @@ Patch19: Backport-poly1305-ppc.pl-Fix-vector-register-clobbering.patch
|
|||||||
Patch20: Backport-Limit-the-execution-time-of-RSA-public-key-check.patch
|
Patch20: Backport-Limit-the-execution-time-of-RSA-public-key-check.patch
|
||||||
Patch21: Backport-Add-NULL-checks-where-ContentInfo-data-can-be-NULL.patch
|
Patch21: Backport-Add-NULL-checks-where-ContentInfo-data-can-be-NULL.patch
|
||||||
Patch22: Backport-Fix-SM4-XTS-aarch64-assembly-implementation-bug.patch
|
Patch22: Backport-Fix-SM4-XTS-aarch64-assembly-implementation-bug.patch
|
||||||
|
Patch23: fix-add-loongarch64-target.patch
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ perl make lksctp-tools-devel coreutils util-linux zlib-devel
|
BuildRequires: gcc gcc-c++ perl make lksctp-tools-devel coreutils util-linux zlib-devel
|
||||||
Requires: coreutils %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: coreutils %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
@ -86,7 +87,7 @@ sslarch=%{_os}-%{_target_cpu}
|
|||||||
%ifarch i686
|
%ifarch i686
|
||||||
sslarch=linux-elf
|
sslarch=linux-elf
|
||||||
%endif
|
%endif
|
||||||
%ifarch riscv64
|
%ifarch riscv64 loongarch64
|
||||||
sslarch=%{_os}64-%{_target_cpu}
|
sslarch=%{_os}64-%{_target_cpu}
|
||||||
sslflags="--libdir=%{_libdir}"
|
sslflags="--libdir=%{_libdir}"
|
||||||
%endif
|
%endif
|
||||||
@ -231,6 +232,9 @@ make test || :
|
|||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 6 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1:3.0.12-3
|
||||||
|
- Fix build error for loongarch64
|
||||||
|
|
||||||
* Thu Jan 18 2024 Xu Yizhou <xuyizhou1@huawei.com> - 1:3.0.12-2
|
* Thu Jan 18 2024 Xu Yizhou <xuyizhou1@huawei.com> - 1:3.0.12-2
|
||||||
- Fix SM4-XTS aarch64 assembly implementation bug
|
- Fix SM4-XTS aarch64 assembly implementation bug
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user