From ef8764e6ab6d7d0386b2161e226e3def8deb032d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 5 Feb 2023 08:32:16 +0100 Subject: [PATCH] Temporarily fix mingw builds on windows missing bz2.dll This will need to be addressed in tpt-libs at some point. --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 0d5e9032c..2cc47003e 100644 --- a/meson.build +++ b/meson.build @@ -286,6 +286,12 @@ if host_platform == 'windows' foreach input_output_condition : tpt_libs.get_variable('config_dlls') dll_input = input_output_condition[0] dll_output = input_output_condition[1] + if tpt_libs_vtag == 'v20230101182417' and host_libc == 'mingw' and dll_output == 'libbz2.dll' + # v20230101182417 (and possibly earlier releases but whatever) copies bz2's dll + # in as libbz2.dll, when the .lib has the executable link against bz2.dll. I blame + # the insanely inconsistent build system configurations these libraries use. + dll_output = 'bz2.dll' + endif dll_condition = input_output_condition[2] do_copy = false if dll_condition == 'all'