Add support for ppc64le

This commit is contained in:
peng.zou 2023-12-19 15:31:06 +08:00
parent 47d090bf67
commit d595d7e9a5
2 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,34 @@
From 0590717edcc0b209690d26942bd935c23b4cb7d3 Mon Sep 17 00:00:00 2001
From: "peng.zou" <peng.zou@shingroup.cn>
Date: Tue, 19 Dec 2023 14:54:11 +0800
Subject: [PATCH] ltrace-0.7.91-add-support-for-ppc64le
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 852f201..fb030f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,7 +45,7 @@ case "${host_cpu}" in
cris*) HOST_CPU="cris" ;;
loongarch*) HOST_CPU="loongarch" ;;
mips*) HOST_CPU="mips" ;;
- powerpc|powerpc64) HOST_CPU="ppc" ;;
+ powerpc|powerpc64*) HOST_CPU="ppc" ;;
riscv64) HOST_CPU="riscv64" ;;
sun4u|sparc64) HOST_CPU="sparc" ;;
s390x) HOST_CPU="s390" ;;
@@ -216,7 +216,7 @@ if test x"$enable_libunwind" = xyes; then
arm*|sa110) UNWIND_ARCH="arm" ;;
i?86) UNWIND_ARCH="x86" ;;
powerpc) UNWIND_ARCH="ppc32" ;;
- powerpc64) UNWIND_ARCH="ppc64" ;;
+ powerpc64*) UNWIND_ARCH="ppc64" ;;
mips*) UNWIND_ARCH="mips" ;;
loongarch*) UNWIND_ARCH="loongarch" ;;
riscv*) UNWIND_ARCH="riscv" ;;
--
2.33.0

View File

@ -1,6 +1,6 @@
name: ltrace
Version: 0.7.91
Release: 33
Release: 34
Summary: Trace the Library and System Calls a Program Makes
License: GPLv2+
@ -34,6 +34,7 @@ Patch9004: Initialize-nrhs-to-avoid-gcc-warning.patch
# patch for arches
Patch8000: ltrace-0.7.91-add-support-for-loongarch.patch
Patch8001: ltrace-0.7.91-add-initial-riscv64-support.patch
Patch8002: ltrace-0.7.91-add-support-for-ppc64le.patch
BuildRequires: elfutils-devel dejagnu libselinux-devel autoconf automake libtool
@ -79,11 +80,14 @@ autoreconf -i
%{_mandir}/man5/ltrace.conf.5*
%changelog
* Tue Dec 19 2023 peng.zou <peng.zou@shingroup.cn> - 0.7.91-34
- Add support for ppc64le
* Fri Jul 07 2023 laokz <zhangkai@iscas.ac.cn> - 0.7.91-33
- Backport riscv64 patch
* Thu Dec 15 2022 Hui Li <lihui@loongson.cn> - 0.7.91-32
- Add suppot for loongarch
- Add support for loongarch
* Mon Jan 11 2021 lingsheng <lingsheng@huawei.com> - 0.7.91-31
- Initialize 'nrhs' to avoid gcc warning