From bd5cdaafadf997c0ab3c4ad362dbdfd7dc6fd987 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sat, 20 Nov 2021 12:05:56 +0000
Subject: meson: fix pam_misc_dep definition

X-Gentoo-Bug: 824954
X-Gentoo-Bug-URL: https://bugs.gentoo.org/824954
Fixes: https://github.com/OpenRC/openrc/issues/470
Fixes: https://github.com/OpenRC/openrc/pull/477
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 5210861e..8af45560 100644
--- a/meson.build
+++ b/meson.build
@@ -94,6 +94,7 @@ rc_sbindir = rc_libexecdir / 'sbin'
 sbindir = rootprefix / get_option('sbindir')
 
 selinux_dep = dependency('libselinux', required : get_option('selinux'))
+pam_misc_dep = []
 if selinux_dep.found()
   cc_selinux_flags = '-DHAVE_SELINUX'
   if pam_dep.found() and get_option('pam')
@@ -107,7 +108,6 @@ if selinux_dep.found()
   endif
 else
   cc_selinux_flags = []
-  pam_misc_dep = []
 endif
 
 termcap = get_option('termcap')
-- 
cgit v1.2.3