]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests/meson: attempt to fix ossfuzz builds 4403/head
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Mon, 19 Feb 2024 09:05:43 +0000 (10:05 +0100)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Mon, 19 Feb 2024 09:06:14 +0000 (10:06 +0100)
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 <aleksandr.mikhalitsyn@canonical.com>
src/tests/meson.build

index d5374107c58d960484bfab6d06af9bb575b082a3..06dde5cc22c4f586f188f8114e2fc769edeedc55 100644 (file)
@@ -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],