On 24/10/2024 06:37, Artemis Tosini wrote:
Hello,I'm working on a tool for cross-compiling an OpenBSD system from Linux and libtool is causing some issues with shared libraries. My Linux system doesn't have `/usr/libexec/ld.so`, so libtool always claims that the target does not support shared libraries. I saw there was a patch submitted that fixed this earlier this year, but broke long unsupported architectures without elf and dynamic linking: https://lists.gnu.org/archive/html/libtool-patches/2024-01/msg00094.html I would support merging that patch as-is. If someone with a vax/m88k/sh machine wants to use modern libtool then adding a hardcoded workaround should be easy with their hardware to test.
The patch submitted in January removed OpenBSD support for non-shared and a.out archs, but it also removed the explicit check for shared libraries support. Generally, libtool does not drop support unless there is strong argument for it. If it is not causing issues, I think the support should remain. For the issue with cross-compilation for OpenBSD, the removal of the explicit check for shared libraries support is the only part of that patch which is needed to fix it. However, looking through the archives,this issue was known when it was committed [1]. I would like to find a better solution for verifying shared libraries support on OpenBSD,
unless other OpenBSD users agree that this check is not needed now. [1] https://lists.gnu.org/archive/html/libtool-patches/2007-03/msg00044.html -- Ileana Dumitrescu GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354
OpenPGP_0x6570EA01146F7354.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature