]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool: Correct DLL Installation Path for mingw
authortrcrsired <uwgghhbcad@gmail.com>
Tue, 14 May 2024 19:26:40 +0000 (20:26 +0100)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 19 Jul 2024 16:20:46 +0000 (19:20 +0300)
commitab89ebbcc2ff0ecff5157982ef03627cfd615f7e
tree3e0f8b1f737b40f848beec7c51a79405d43a4aa6
parent434a308f460380d9a9a173cc2d7cbfe6c6511575
libtool: Correct DLL Installation Path for mingw

When building native GCC for the x86_64-w64-mingw32 host, the
compiler copies its library DLLs to the `bin` directory. However,
in the case of a multilib configuration, both 32-bit and 64-bit
libraries end up in the same `bin` directory, leading to conflicts
where 64-bit DLLs are overridden by their 32-bit counterparts.

This patch addresses the issue by adjusting the installation path
for the libraries. Specifically, it installs the libraries to
separate directories: `lib` for 64-bit and `lib32` for 32-bit. This
behavior aligns with how libraries are installed when creating an
x86_64-w64-mingw32 cross-compiler without copying them to the `bin`
directory if it is a multilib build.

* m4/libtool.m4: Install DLL to $(libdir), not $(libdir)/bin, if
  multilib build.
m4/libtool.m4