package/freeradius-client: 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-13/output-1/host/lib/gcc/riscv32-buildroot-linux-gnu/12.3.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: local.o: in function `auth_local':
local.c:(.text+0xe8): undefined reference to `crypt'

Fixes: b5680f53d6
 - http://autobuild.buildroot.org/results/207bba3df700108839382007020be56c4629ef75

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:00:14 +02:00 committed by Yann E. MORIN
parent 8dd367b82c
commit 0a9164adee
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_FREERADIUS_CLIENT
bool "freeradius-client"
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
FreeRADIUS Client is a framework and library for
writing RADIUS Clients.

View File

@ -12,6 +12,10 @@ FREERADIUS_CLIENT_INSTALL_STAGING = YES
FREERADIUS_CLIENT_DEPENDENCIES = host-pkgconf
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
FREERADIUS_CLIENT_DEPENDENCIES += libxcrypt
endif
ifeq ($(BR2_PACKAGE_NETTLE),y)
FREERADIUS_CLIENT_DEPENDENCIES += nettle
FREERADIUS_CLIENT_CONF_OPTS += --with-nettle=yes