summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorWolfgang Müller <wolf@oriole.systems>2023-04-24 20:00:56 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-04-25 02:00:16 +0100
commit38fc5e0314c84b0259197f155e6cc8782e4773c7 (patch)
tree05eef2d5aa7b05312c95872fef6c8da01648db48 /src/shared
parent0593b34adcb79056767a5cfd70028a8222ee3cb7 (diff)
downloadsystemd-38fc5e0314c84b0259197f155e6cc8782e4773c7.tar.gz
cryptsetup-fido2: Depend on libcryptsetup
crypsetup-fido2 always depended on both libfido2 and libcryptsetup, but 0a8e026e825dda142a8f1552a4b45815cbfd0b48 forgot to make the then implicit dependency on libcryptsetup explicit when moving it from cryptsetup/ to shared/. This breaks builds when libfido2 is autodetected but the system is missing libcryptsetup. Introduce an explicit check for HAVE_LIBCRYPTSETUP such that cryptsetup-fido2 is only built when both libraries are available. Fixes #27374.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/meson.build b/src/shared/meson.build
index 060e528555..021ba517f8 100644
--- a/src/shared/meson.build
+++ b/src/shared/meson.build
@@ -226,7 +226,7 @@ if conf.get('ENABLE_NSCD') == 1
shared_sources += files('nscd-flush.c')
endif
-if conf.get('HAVE_LIBFIDO2') == 1
+if conf.get('HAVE_LIBFIDO2') == 1 and conf.get('HAVE_LIBCRYPTSETUP') == 1
shared_sources += files('cryptsetup-fido2.c')
endif