From d78ca00bc63eedf927bf2d4720c6ee0819f0b7bf Mon Sep 17 00:00:00 2001 From: Alexander Mikhalitsyn Date: Mon, 19 Feb 2024 10:05:43 +0100 Subject: [PATCH] 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 --- src/tests/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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], -- 2.47.2