]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: make sure we never actually link to libxenctrl
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Nov 2023 14:57:34 +0000 (15:57 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 2 Nov 2023 17:27:07 +0000 (17:27 +0000)
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
src/shared/meson.build

index 5ac15d83562f923f54b6281bba1b76846e1bc00d..43a87407b079dc6f68ae3efe8a0040e1cdeeced5 100644 (file)
@@ -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',
index 0ef34d4bc864c84095e401042bff25e135e56680..08441de0ad445555a2c8a2e6c970603eec15ea7b 100644 (file)
@@ -326,7 +326,7 @@ libshared_deps = [threads,
                   librt,
                   libseccomp,
                   libselinux,
-                  libxenctrl,
+                  libxenctrl_cflags,
                   libxz,
                   libzstd]