Selaa lähdekoodia

package/vsftpd: add libxcrypt optional dependency

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

/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: b5680f53d60acf8ff6010082f873438a39bd5d97
 - 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>
Fabrice Fontaine 1 vuosi sitten
vanhempi
commit
21c2a8ef8f
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 1 0
      package/vsftpd/Config.in
  2. 4 0
      package/vsftpd/vsftpd.mk

+ 1 - 0
package/vsftpd/Config.in

@@ -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/

+ 4 - 0
package/vsftpd/vsftpd.mk

@@ -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