tools: libtool: always install all auxillary files
authorMichael Pratt <[email protected]>
Fri, 8 Aug 2025 05:23:34 +0000 (01:23 -0400)
committerRobert Marko <[email protected]>
Mon, 11 Aug 2025 20:28:41 +0000 (22:28 +0200)
Remove the needless restriction
for which auxillary files are installed.
This aligns the behavior of libtoolize
with the existing behavior of automake.

This can prevent the seemingly random error
if autoreconf happens to be ran multiple times:

  configure: error: cannot find required auxiliary files: compile

Signed-off-by: Michael Pratt <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19748
Signed-off-by: Robert Marko <[email protected]>
tools/libtool/patches/001-always-install-aux.patch [new file with mode: 0644]

diff --git a/tools/libtool/patches/001-always-install-aux.patch b/tools/libtool/patches/001-always-install-aux.patch
new file mode 100644 (file)
index 0000000..f9e0d95
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libtoolize.in
++++ b/libtoolize.in
+@@ -1066,7 +1066,7 @@ func_install_pkgaux_files ()
+           func_ltmain_update "$file" "$pkgauxdir" "$aux_dir" pkgaux_header
+           ;;
+         *)
+-          test subproject = "$ltdl_mode" || continue
++          $opt_install || test subproject = "$ltdl_mode" || continue
+           func_copy "$file" "$pkgauxdir" "$aux_dir" pkgaux_header
+           ;;
+       esac