From 13bf8e102e9932de95ba8748d735f47816d13e66 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 8 Dec 2018 08:07:57 -0500 Subject: [PATCH] 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 --- fuzz/meson.build | 4 +++- meson.build | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fuzz/meson.build b/fuzz/meson.build index c6880d6..e4948b7 100644 --- a/fuzz/meson.build +++ b/fuzz/meson.build @@ -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 diff --git a/meson.build b/meson.build index 760baaa..16c9863 100644 --- a/meson.build +++ b/meson.build @@ -101,4 +101,4 @@ subdir('include') subdir('src') subdir('tools') subdir('tests') -#subdir('fuzz') +subdir('fuzz')