libcrypt: allow to build systemd without libcrypt/libxcrypt

libcrypt is only used by firstboot, homed, and sysusers, which can be
disabled by meson option.
Let's not require the library unconditionally.
This commit is contained in:
Yu Watanabe
2026-01-02 12:55:57 +09:00
parent 5863641bb7
commit 8de783a288
5 changed files with 24 additions and 12 deletions
+1
View File
@@ -346,6 +346,7 @@ executables += [
test_template + {
'sources' : files('test-libcrypt-util.c'),
'dependencies' : libcrypt,
'conditions' : ['HAVE_LIBCRYPT'],
'timeout' : 120,
},
test_template + {