From f3f0fde861b438c80f99afdd49fe175e9d0a68ca Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 20 Nov 2021 12:06:37 +0000 Subject: meson: link against libcrypt for SELinux if no PAM We use libcrypt's crypt() if we're _not_ using PAM in the SELinux code (rc-selinux, specifically). X-Gentoo-Bug: 824954 X-Gentoo-Bug-URL: https://bugs.gentoo.org/824954 Fixes: https://github.com/openrc/openrc/pull/477 --- meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8af45560..1ee10751 100644 --- a/meson.build +++ b/meson.build @@ -93,6 +93,8 @@ rc_bindir = rc_libexecdir / 'bin' rc_sbindir = rc_libexecdir / 'sbin' sbindir = rootprefix / get_option('sbindir') +crypt_dep = dependency('libcrypt', required : not get_option('pam')) + selinux_dep = dependency('libselinux', required : get_option('selinux')) pam_misc_dep = [] if selinux_dep.found() -- cgit v1.2.3