package/vsftpd: 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-5/output-1/host/lib/gcc/mipsel-buildroot-linux-gnu/12.3.0/../../../../mipsel-buildroot-linux-gnu/bin/ld: cannot find -lcrypt: No such file or directory

Fixes: b5680f53d6
 - http://autobuild.buildroot.org/results/062dbadf1f2f8e25747f7689974a693163932113

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 16:12:47 +02:00 committed by Yann E. MORIN
parent 02905fe54c
commit 21c2a8ef8f
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
config BR2_PACKAGE_VSFTPD
bool "vsftpd"
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
vsftpd is an ftp daemon written with security in mind.
http://vsftpd.beasts.org/

View File

@ -35,6 +35,10 @@ VSFTPD_DEPENDENCIES += libcap
VSFTPD_LIBS += -lcap
endif
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
VSFTPD_DEPENDENCIES += libxcrypt
endif
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
VSFTPD_DEPENDENCIES += linux-pam
VSFTPD_LIBS += -lpam