From 2bdd7a8ac99576b7b2a2d472dc306f4725831bf7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 2 Nov 2023 15:57:34 +0100 Subject: [PATCH] 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. --- meson.build | 1 + src/shared/meson.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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]