package/proftpd: add libxcrypt optional dependency

Fix the following build failure raised since bump of glibc to version
2.39 in commit b5680f53d6:

/home/autobuild/autobuild/instance-12/output-1/host/lib/gcc/s390x-buildroot-linux-gnu/13.2.0/../../../../s390x-buildroot-linux-gnu/bin/ld: modules/mod_auth_file.o: in function `authfile_chkpass':
mod_auth_file.c:(.text+0x3aa): undefined reference to `crypt'

Fixes: b5680f53d6
 - http://autobuild.buildroot.org/results/4d39666854a0395e96c7b0c8339b6ac1b41c4348

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2024-04-07 15:25:16 +02:00 committed by Yann E. MORIN
parent 90fc4d74ae
commit 0c19ab7e1c
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@ config BR2_PACKAGE_PROFTPD
bool "proftpd"
depends on BR2_USE_MMU # fork()
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
ProFTPD, a highly configurable FTP server.

View File

@ -31,6 +31,10 @@ ifeq ($(BR2_PACKAGE_LIBIDN2),y)
PROFTPD_DEPENDENCIES += libidn2
endif
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
PROFTPD_DEPENDENCIES += libxcrypt
endif
ifeq ($(BR2_PACKAGE_PCRE2),y)
PROFTPD_CONF_OPTS += --enable-pcre2
PROFTPD_DEPENDENCIES += pcre2