@@ -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
@@ -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)
Fix the following build failure raised since bump of glibc to version 2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97: /home/buildroot/autobuild/instance-0/output-1/host/lib/gcc/powerpc-buildroot-linux-gnu/13.2.0/../../../../powerpc-buildroot-linux-gnu/bin/ld: src/util.o: in function `Util_checkCredentials': util.c:(.text+0x32e8): undefined reference to `crypt' Fixes: b5680f53d60acf8ff6010082f873438a39bd5d97 - http://autobuild.buildroot.org/results/12b2c6665280dcb813a58d9b025038bacc3b8d51 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> --- package/monit/Config.in | 1 + package/monit/monit.mk | 4 ++++ 2 files changed, 5 insertions(+)