]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool: Fix support for NIOS2 processor
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Jan 2024 15:14:24 +0000 (15:14 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 17 Jan 2024 01:48:27 +0000 (20:48 -0500)
commit49e6cb0d4dfdca2a59b909dc4532fe22dbc57ad5
tree9eca55cc4e699c0f1784ceff0800b0debcb02128
parent51ac68a24eb72e3e522d2d2d15f322f2163757ed
libtool: Fix support for NIOS2 processor

When building for a nios2 system, the $host tuple starts with "nios2-"
which is caught by the some of the greedy checks for OS/2 in libtool.
In particular, the *os2* branches of switch statements that only want
to match the OS setting end up matching all nios2 targets, which
results in incorrect behavior.

Switch to use $host_os instead of $host and tweak the patterns to
match to avoid this problem for nios2.

* build-aux/ltmain.in: Switch some $host checks to $host_os.
build-aux/ltmain.in