From: Lennart Poettering Date: Thu, 2 Nov 2023 14:57:34 +0000 (+0100) Subject: meson: make sure we never actually link to libxenctrl X-Git-Tag: v255-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bdd7a8ac99576b7b2a2d472dc306f4725831bf7;p=thirdparty%2Fsystemd.git meson: make sure we never actually link to libxenctrl We don't make use of any of its symbols, we just want the headers, hence make sure we never try to link against it. --- diff --git a/meson.build b/meson.build index 5ac15d83562..43a87407b07 100644 --- a/meson.build +++ b/meson.build @@ -1203,6 +1203,7 @@ libxenctrl = dependency('xencontrol', version : '>= 4.9', required : get_option('xenctrl')) conf.set10('HAVE_XENCTRL', libxenctrl.found()) +libxenctrl_cflags = libxenctrl.partial_dependency(includes: true, compile_args: true) feature = get_option('pam') libpam = dependency('pam', diff --git a/src/shared/meson.build b/src/shared/meson.build index 0ef34d4bc86..08441de0ad4 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -326,7 +326,7 @@ libshared_deps = [threads, librt, libseccomp, libselinux, - libxenctrl, + libxenctrl_cflags, libxz, libzstd]