diff --git a/meson.build b/meson.build index 5ac15d8356..43a87407b0 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 0ef34d4bc8..08441de0ad 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]