]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson.build: fix build with -Dcapabilities=false
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 14 Jul 2022 15:03:40 +0000 (17:03 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 25 Jul 2022 22:12:43 +0000 (18:12 -0400)
Define libcap_static to an empty array to avoid the following build
failure with -Dcapabilities=false:

output/build/lxc-5.0.0/src/lxc/cmd/meson.build:64:4: ERROR: Unknown variable "libcap_static".

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
meson.build

index 3748a9037cfa73b09f5cf512f8e14561bfa8c453..bccbd74ec52b32ca1c5c516da5545c3122d0fe1e 100644 (file)
@@ -442,6 +442,7 @@ int main(int argc, char *argv[]) { return 0; };
         srcconf.set10('HAVE_STATIC_LIBCAP', false)
     endif
 else
+    libcap_static = []
     srcconf.set10('HAVE_LIBCAP', false)
     srcconf.set10('HAVE_STATIC_LIBCAP', false)
 endif