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:
parent
ba6f11f751
commit
1159bd46c3
|
@ -34,6 +34,6 @@ foreach test_name : tests
|
||||||
link_with : libpsl,
|
link_with : libpsl,
|
||||||
include_directories : configinc,
|
include_directories : configinc,
|
||||||
link_language : link_language,
|
link_language : link_language,
|
||||||
dependencies : [libpsl_dep])
|
dependencies : [libpsl_dep, networking_deps])
|
||||||
test(test_name, exe, depends : [psl_dafsa, psl_ascii_dafsa])
|
test(test_name, exe, depends : [psl_dafsa, psl_ascii_dafsa])
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
@ -2,7 +2,7 @@ psl = executable('psl', 'psl.c',
|
||||||
include_directories : configinc,
|
include_directories : configinc,
|
||||||
c_args : ['-DHAVE_CONFIG_H'],
|
c_args : ['-DHAVE_CONFIG_H'],
|
||||||
link_language : link_language,
|
link_language : link_language,
|
||||||
dependencies : [libpsl_dep],
|
dependencies : [libpsl_dep, networking_deps],
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue