aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_userdb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_userdb')
-rw-r--r--modules/pam_userdb/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/pam_userdb/Makefile b/modules/pam_userdb/Makefile
index 40687f8d..b53ac436 100644
--- a/modules/pam_userdb/Makefile
+++ b/modules/pam_userdb/Makefile
@@ -12,7 +12,9 @@ TITLE=pam_userdb
ifeq ($(HAVE_NDBM_H),yes)
WHICH_DB=ndbm
- MODULE_SIMPLE_EXTRALIBS = -lndbm
+ ifeq ($(HAVE_LIBNDBM),yes)
+ MODULE_SIMPLE_EXTRALIBS = -lndbm
+ endif
else
ifeq ($(HAVE_LIBDB),yes)
WHICH_DB=db