diff --git a/libtool-2.4.6-fix-building-without-libltdl.la.patch b/libtool-2.4.6-fix-building-without-libltdl.la.patch new file mode 100644 index 0000000000000000000000000000000000000000..7343e65fe1f2e222f5fb99b6843eae0c8f929f3e --- /dev/null +++ b/libtool-2.4.6-fix-building-without-libltdl.la.patch @@ -0,0 +1,17 @@ +diff -up ./m4/ltdl.m4.orig ./m4/ltdl.m4 +--- ./m4/ltdl.m4.orig 2016-02-11 20:40:28.013253981 +0200 ++++ ./m4/ltdl.m4 2016-02-11 20:41:07.142760471 +0200 +@@ -282,8 +282,11 @@ AC_ARG_WITH([ltdl_lib], + [use the libltdl.la installed in DIR])]) + + if test -n "$with_ltdl_lib"; then +- if test -f "$with_ltdl_lib/libltdl.la"; then : +- else ++ # check for the existence of "$with_ltdl_lib/libltdl.la" while ++ # allowing people to delete the libtool archive file (which isn't ++ # useful in this case in many common platforms.) ++ with_ltdl_lib_libname=`echo "$with_ltdl_lib"/libltdl.*` ++ if test "x$with_ltdl_lib_libname" = "x$with_ltdl_lib/libltdl.*"; then + AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib']) + fi + else diff --git a/libtool.spec b/libtool.spec index b509a985e1f45584f21d49743fe50be61e3f7a04..49d62ce4babcc1e2b7ca960c53284cbc995fd2eb 100644 --- a/libtool.spec +++ b/libtool.spec @@ -3,7 +3,7 @@ Name: libtool Version: 2.5.4 -Release: 2 +Release: 3 License: GPL-2.0-or-later AND LGPL-2.0-or-later and GFDL-1.3-or-later Summary: The GNU Portable Library Tool URL: https://www.gnu.org/software/libtool/ @@ -12,6 +12,7 @@ Source0: https://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz Patch0: libtool-2.5.3-rpath.patch Patch1: libtool-2.4.6-disable-lto-link-order2.patch Patch2: add-sw_64-support.patch +Patch3: libtool-2.4.6-fix-building-without-libltdl.la.patch Requires: gcc(major),autoconf, automake, sed, tar, findutils @@ -129,6 +130,9 @@ rm -f %{buildroot}%{_infodir}/dir %{_mandir}/man1/libtoolize.1* %changelog +* Fri Apr 04 2025 Funda Wang - 2.5.4-3 +- fix building packages without libltdl.la + * Tue Mar 11 2025 mahailiang - 2.5.4-2 - add sw_64 support