From: Alexander Mikhalitsyn Date: Mon, 19 Feb 2024 09:05:43 +0000 (+0100) Subject: tests/meson: attempt to fix ossfuzz builds X-Git-Tag: v6.0.0~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d78ca00bc63eedf927bf2d4720c6ee0819f0b7bf;p=thirdparty%2Flxc.git tests/meson: attempt to fix ossfuzz builds As we link statically with liblxc, we don't need to link with liblxc_ext_sources, as all the symbols will come from liblxc.a itself. Signed-off-by: Alexander Mikhalitsyn --- diff --git a/src/tests/meson.build b/src/tests/meson.build index d5374107c..06dde5cc2 100644 --- a/src/tests/meson.build +++ b/src/tests/meson.build @@ -412,7 +412,7 @@ endif if want_oss_fuzz test_programs += executable( 'fuzz-lxc-cgroup-init', - files('fuzz-lxc-cgroup-init.c') + tests_common_sources, + files('fuzz-lxc-cgroup-init.c') + include_sources + netns_ifaddrs_sources, include_directories: liblxc_includes, dependencies: [fuzzing_engine, oss_fuzz_dependencies], link_with: [liblxc_static], @@ -421,7 +421,7 @@ if want_oss_fuzz test_programs += executable( 'fuzz-lxc-config-read', - files('fuzz-lxc-config-read.c') + tests_common_sources, + files('fuzz-lxc-config-read.c') + include_sources + netns_ifaddrs_sources, include_directories: liblxc_includes, dependencies: [fuzzing_engine, oss_fuzz_dependencies], link_with: [liblxc_static], @@ -430,7 +430,7 @@ if want_oss_fuzz test_programs += executable( 'fuzz-lxc-define-load', - files('fuzz-lxc-define-load.c') + tests_common_sources, + files('fuzz-lxc-define-load.c') + include_sources + netns_ifaddrs_sources, include_directories: liblxc_includes, dependencies: [fuzzing_engine, oss_fuzz_dependencies], link_with: [liblxc_static],