package/whois: 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/riscv32-buildroot-linux-gnu/12.3.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: cannot find -lcrypt: No such file or directory

Fixes: b5680f53d6
 - http://autobuild.buildroot.org/results/b0aaffaf951725186ae078ce101edb24c963c6a3

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 14:13:42 +02:00 committed by Yann E. MORIN
parent 38209fb5d3
commit d0653e3b2c
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
config BR2_PACKAGE_WHOIS
bool "whois"
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
Improved whois client.

View File

@ -10,6 +10,7 @@ WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
WHOIS_DEPENDENCIES = \
host-pkgconf \
$(if $(BR2_PACKAGE_LIBIDN2),libidn2) \
$(if $(BR2_PACKAGE_LIBXCRYPT),libxcrypt) \
$(TARGET_NLS_DEPENDENCIES)
WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \