Skip to content

build: Force default libdir location on Windows

Pellegrino Prevete requested to merge tallero/libhandy:mingw64 into master

When libdir is different from default directory, meson install import library (libhandy-0.0.dll.a) alongside libhandy-0.0.dll; MinGW, instead, wants import libraries in libdir and libraries in bindir. So we need defaults libdir on MinGW build.

Changing install_dir arg from libdir to [true] in libhandy shared_library call set installation in default directory, so it fixes the problem.

I have not changed the global variable libdir to [true] on Windows because this breaks the other targets depending on libdir.

This fixes https://github.com/Alexpux/MINGW-packages/pull/4815.

CI failing should not depend on this because the change should not affect linux/unix. Also, it builds on my machine.

Edited by Pellegrino Prevete

Merge request reports