diff --git a/package/monit/Config.in b/package/monit/Config.in index 9f80858f8a..d177fe183c 100644 --- a/package/monit/Config.in +++ b/package/monit/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_MONIT bool "monit" depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC help Monit is a free open source utility for managing and monitoring, processes, programs, files, directories and diff --git a/package/monit/monit.mk b/package/monit/monit.mk index c709f903e6..e3a4fac936 100644 --- a/package/monit/monit.mk +++ b/package/monit/monit.mk @@ -25,6 +25,10 @@ MONIT_CONF_OPTS += \ --without-pam \ --with-largefiles +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +MONIT_DEPENDENCIES += libxcrypt +endif + ifeq ($(BR2_PACKAGE_OPENSSL),y) MONIT_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl` ifeq ($(BR2_STATIC_LIBS),y)