!34 [sync] PR-32: add sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2025-03-17 04:24:08 +00:00 committed by Gitee
commit 50855b25d6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 44 additions and 1 deletions

39
add-sw_64-support.patch Normal file
View File

@ -0,0 +1,39 @@
From f980ecdce8edd95b84421778f768a637384d8749 Mon Sep 17 00:00:00 2001
From: Hailiang <mahailiang@uniontech.com>
Date: Tue, 11 Mar 2025 13:50:46 +0800
Subject: [PATCH] add sw_64 support
---
build-aux/config.guess | 3 +++
build-aux/config.sub | 1 +
2 files changed, 4 insertions(+)
diff --git a/build-aux/config.guess b/build-aux/config.guess
index 7f76b62..fd3524f 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -1143,6 +1143,9 @@ EOF
sparc:Linux:*:* | sparc64:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
+ sw_64*:Linux:*:*)
+ GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
+ ;;
tile*:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 9b62e37..70bc542 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -1267,6 +1267,7 @@ case $cpu-$vendor in
| sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
| spu \
+ | sw_64 \
| tahoe \
| thumbv7* \
| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
--
2.20.1

View File

@ -3,13 +3,14 @@
Name: libtool
Version: 2.4.7
Release: 2
Release: 3
License: GPLv2+ and LGPLv2+ and GFDL-1.3-or-later
Summary: The GNU Portable Library Tool
URL: http://www.gnu.org/software/libtool/
Source0: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz
Patch0: libtool-2.4.5-rpath.patch
Patch1: add-sw_64-support.patch
Requires: gcc(major),autoconf, automake, sed, tar, findutils
@ -105,6 +106,9 @@ rm -f %{buildroot}%{_libdir}/libltdl.{a,la}
%changelog
* Tue Mar 11 2025 mahailiang <mahailiang@uniontech.com> - 2.4.7-3
- add sw_64 support
* Tue Jun 06 2023 laokz <zhangkai@iscas.ac.cn> - 2.4.7-2
- add -fPIC to fortran flags for riscv