From: Fabrice Fontaine Date: Thu, 14 Jul 2022 15:03:40 +0000 (+0200) Subject: meson.build: fix build with -Dcapabilities=false X-Git-Tag: lxc-5.0.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aba631cd43e86f2b55f31c369b7f37392a34ae05;p=thirdparty%2Flxc.git meson.build: fix build with -Dcapabilities=false 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 --- diff --git a/meson.build b/meson.build index 3748a9037..bccbd74ec 100644 --- a/meson.build +++ b/meson.build @@ -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