Meson: Fix link of fuzzer tests

libicu is an internal dependency of libpsl, so if an executable
uses libicu directly, linking on libpsl is not enough, it must also
link on libicu.

Closes: #115
This commit is contained in:
Xavier Claessens 2018-12-08 08:07:57 -05:00
parent 77971566d3
commit 13bf8e102e
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@ foreach test_name : ['fuzzer', 'load_fuzzer', 'load_dafsa_fuzzer']
exe = executable(test_name, source_file, 'main.c',
link_with : libpsl,
c_args : fuzzer_cargs,
include_directories : [configinc, includedir])
include_directories : [configinc, includedir],
dependencies : libicu_dep,
)
test(test_name, exe)
endforeach

View File

@ -101,4 +101,4 @@ subdir('include')
subdir('src')
subdir('tools')
subdir('tests')
#subdir('fuzz')
subdir('fuzz')