summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/sudo/sudo.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk
index 12b16e04e3..b1a6dd35fc 100644
--- a/package/sudo/sudo.mk
+++ b/package/sudo/sudo.mk
@@ -37,6 +37,13 @@ else
SUDO_CONF_OPTS += --disable-zlib
endif
+ifeq ($(BR2_PACKAGE_OPENLDAP),y)
+SUDO_DEPENDENCIES += openldap
+SUDO_CONF_OPTS += --with-ldap
+else
+SUDO_CONF_OPTS += --without-ldap
+endif
+
# mksigname/mksiglist needs to run on build host to generate source files
define SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST
$(MAKE) $(HOST_CONFIGURE_OPTS) \
OpenPOWER on IntegriCloud