meson: fix tests/tools link errors when building shared library for Windows

We need to link them with ws2_32 explicitly.
This commit is contained in:
Alexey Rochev 2022-01-13 01:44:21 +03:00
parent ba6f11f751
commit 1159bd46c3
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,6 @@ foreach test_name : tests
link_with : libpsl,
include_directories : configinc,
link_language : link_language,
dependencies : [libpsl_dep])
dependencies : [libpsl_dep, networking_deps])
test(test_name, exe, depends : [psl_dafsa, psl_ascii_dafsa])
endforeach

View File

@ -2,7 +2,7 @@ psl = executable('psl', 'psl.c',
include_directories : configinc,
c_args : ['-DHAVE_CONFIG_H'],
link_language : link_language,
dependencies : [libpsl_dep],
dependencies : [libpsl_dep, networking_deps],
install : true,
)