From: ~_6d6178667269747a <_6d6178667269747a@git.sr.ht>
To: qemu-devel@nongnu.org
Cc: thuth@redhat.com
Subject: [PATCH qemu 1/1] [meson.build] Add conditional dependency for libkeyutils
Date: Mon, 22 May 2023 02:12:02 +0200 [thread overview]
Message-ID: <168471463402.18155.3575359027429939965-1@git.sr.ht> (raw)
In-Reply-To: <168471463402.18155.3575359027429939965-0@git.sr.ht>
From: Max Fritz <antischmock@googlemail.com>
This modification enables better control over the inclusion of libkeyutils
based on the configuration, enhancing the flexibility of the build system.
Signed-off-by: Max Fritz <antischmock@googlemail.com>
---
meson.build | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 0a5cdefd4d..206d4033bf 100644
--- a/meson.build
+++ b/meson.build
@@ -1764,8 +1764,11 @@ if gnutls.found()
tasn1 = dependency('libtasn1',
method: 'pkg-config')
endif
-keyutils = dependency('libkeyutils', required: false,
- method: 'pkg-config')
+keyutils = not_found
+if get_option('keyring').enabled()
+ keyutils = dependency('libkeyutils', required: false,
+ method: 'pkg-config', kwargs: static_kwargs)
+endif
has_gettid = cc.has_function('gettid')
--
2.38.4
next prev parent reply other threads:[~2023-05-22 4:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 0:17 [PATCH qemu 0/1] [meson.build] Add conditional dependency for libkeyutils ~_6d6178667269747a
2023-05-22 0:12 ` ~_6d6178667269747a [this message]
2023-05-26 7:34 ` [PATCH qemu 1/1] " Thomas Huth
2023-05-26 10:32 ` Daniel P. Berrangé
2023-05-31 13:09 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=168471463402.18155.3575359027429939965-1@git.sr.ht \
--to=_6d6178667269747a@git.sr.ht \
--cc=maxfritz@me.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.