]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson: fix build with -Dtools-multicall=true on NixOS 4459/head
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Wed, 26 Jun 2024 18:42:55 +0000 (20:42 +0200)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Wed, 26 Jun 2024 18:44:43 +0000 (20:44 +0200)
See also:
https://github.com/lxc/lxc/pull/4428

Fixes: #4427
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/lxc/tools/meson.build

index 6d317fc80b89f17f8b3fae80aa8515df329702c9..29e7bca4126d86a2c152c6df6d7b97ed9b52dc5d 100644 (file)
@@ -36,7 +36,7 @@ if want_tools
 endif
 
 if want_tools_multicall
-    tools_all_sources = files('lxc_multicall.c') + tools_common_sources_for_dynamic_link
+    tools_all_sources = files('lxc_multicall.c') + files('arguments.c', 'arguments.h')
     foreach cmd : tools_commands
         tools_all_sources += files('lxc_' + cmd + '.c')
     endforeach
@@ -45,8 +45,8 @@ if want_tools_multicall
         'lxc',
         tools_all_sources,
         include_directories: liblxc_includes,
-        dependencies: liblxc_dep,
-        link_with: [liblxc_static],
+        dependencies: liblxc_dependencies,
+        link_whole: [liblxc_static],
         install: true)
 
     if want_tools == false