!413 [sync] PR-345: fix build error for ppc64le

From: @fly_fzc 
Reviewed-by: @zcfsite 
Signed-off-by: @zcfsite
This commit is contained in:
openeuler-ci-bot 2024-11-27 08:04:30 +00:00 committed by Gitee
commit 4a4c057500
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,31 @@
From 4d2ed81fcc1f21aa651fb5cc4555ea21cfd3d232 Mon Sep 17 00:00:00 2001
From: peng_zou <peng.zou@shingroup.cn>
Date: Tue, 25 Jun 2024 10:33:28 +0800
Subject: [PATCH] Fix build error for ppc64le
---
Configurations/10-main.conf | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index 915e7dd..27433ce 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -734,6 +734,14 @@ my %targets = (
asm_arch => 'ppc64',
perlasm_scheme => "linux64le",
},
+ "linux64-ppc64le" => {
+ inherit_from => [ "linux-generic64" ],
+ cflags => add("-m64"),
+ cxxflags => add("-m64"),
+ lib_cppflags => add("-DL_ENDIAN"),
+ asm_arch => 'ppc64',
+ perlasm_scheme => "linux64le",
+ },
"linux-armv4" => {
################################################################
--
2.43.0

View File

@ -2,7 +2,7 @@
Name: openssl
Epoch: 1
Version: 3.0.12
Release: 14
Release: 15
Summary: Cryptography and SSL/TLS Toolkit
License: OpenSSL and SSLeay
URL: https://www.openssl.org/
@ -78,6 +78,7 @@ Patch65: backport-params-provide-a-faster-TRIE-based-param-lookup.patch
Patch9000: add-FIPS_mode_set-support.patch
Patch9001: backport-CVE-2024-9143-Harden-BN_GF2m_poly2arr-against-misuse.patch
Patch9002: Fix-build-error-for-ppc64le.patch
BuildRequires: gcc gcc-c++ perl make lksctp-tools-devel coreutils util-linux zlib-devel
Requires: coreutils %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
@ -133,7 +134,7 @@ sslarch=%{_os}-%{_target_cpu}
%ifarch i686
sslarch=linux-elf
%endif
%ifarch riscv64 loongarch64
%ifarch riscv64 loongarch64 ppc64le
sslarch=%{_os}64-%{_target_cpu}
sslflags="--libdir=%{_libdir}"
%endif
@ -278,6 +279,9 @@ make test || :
%ldconfig_scriptlets libs
%changelog
* Wed Nov 27 2024 peng.zou <peng.zou@shingroup.cn> - 1:3.0.12-15
- Fix build error for ppc64le
* Tue Nov 26 2024 steven <steven_ygui@163.com> - 1:3.0.12-14
- backport patch for performance improvements