From e624215708beb7cc6705d1372abc996a6a4d4ecf Mon Sep 17 00:00:00 2001 From: Hailiang Date: Fri, 28 Feb 2025 17:03:51 +0800 Subject: [PATCH 1/2] add sw_64 support (cherry picked from commit cd4fd4e0475210d5c64a369dd2c0cff582360733) --- add-sw_64-support.patch | 39 +++++++++++++++++++++++++++++++++++++++ libtool.spec | 6 +++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 add-sw_64-support.patch diff --git a/add-sw_64-support.patch b/add-sw_64-support.patch new file mode 100644 index 0000000..91178b0 --- /dev/null +++ b/add-sw_64-support.patch @@ -0,0 +1,39 @@ +From 45efccd7042df956566914d686001eb42285461c Mon Sep 17 00:00:00 2001 +From: mahailiang +Date: Mon, 4 Nov 2024 11:15:36 +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..84384ea 100755 +--- a/build-aux/config.guess ++++ b/build-aux/config.guess +@@ -1039,6 +1039,9 @@ EOF + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; ++ sw_64*:Linux:*:*) ++ echo $UNAME_MACHINE-unknown-linux-$LIBC ++ exit ;; + m32r*: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 + diff --git a/libtool.spec b/libtool.spec index bb027a0..1b80e17 100644 --- a/libtool.spec +++ b/libtool.spec @@ -3,7 +3,7 @@ Name: libtool Version: 2.4.7 -Release: 3 +Release: 4 License: GPLv2+ and LGPLv2+ and GFDL-1.3-or-later Summary: The GNU Portable Library Tool URL: http://www.gnu.org/software/libtool/ @@ -11,6 +11,7 @@ Source0: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz Patch0: libtool-2.4.5-rpath.patch Patch6000: backport-tests-link-order.at-avoid-warning-and-test-failure.patch +Patch6001: add-sw_64-support.patch Requires: gcc(major),autoconf, automake, sed, tar, findutils @@ -106,6 +107,9 @@ rm -f %{buildroot}%{_libdir}/libltdl.{a,la} %changelog +* Fri Feb 28 2025 mahailiang - 2.4.7-3 +- add sw_64 support + * Tue Jun 06 2023 laokz - 2.4.7-3 - add -fPIC to fortran flags for riscv -- Gitee From b896742c121fe11bdae9abd6b1bfe1caa42d0349 Mon Sep 17 00:00:00 2001 From: Hailiang Date: Fri, 28 Feb 2025 17:05:54 +0800 Subject: [PATCH 2/2] add sw_64 support (cherry picked from commit 0bde29e267be1adccbd407aa71f4a4f3cbf29071) --- libtool.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtool.spec b/libtool.spec index 1b80e17..0833b71 100644 --- a/libtool.spec +++ b/libtool.spec @@ -107,7 +107,7 @@ rm -f %{buildroot}%{_libdir}/libltdl.{a,la} %changelog -* Fri Feb 28 2025 mahailiang - 2.4.7-3 +* Fri Feb 28 2025 mahailiang - 2.4.7-4 - add sw_64 support * Tue Jun 06 2023 laokz - 2.4.7-3 -- Gitee