Temporarily fix mingw builds on windows missing bz2.dll

This will need to be addressed in tpt-libs at some point.
This commit is contained in:
Tamás Bálint Misius 2023-02-05 08:32:16 +01:00
parent 0fe8d79e60
commit ef8764e6ab
No account linked to committer's email address

View File

@ -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'