From 0a9164adeecabf77a6a811dcc0e629d3d37a35f8 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 7 Apr 2024 15:00:14 +0200 Subject: [PATCH] package/freeradius-client: 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-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: b5680f53d60acf8ff6010082f873438a39bd5d97 - http://autobuild.buildroot.org/results/207bba3df700108839382007020be56c4629ef75 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/freeradius-client/Config.in | 1 + package/freeradius-client/freeradius-client.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/freeradius-client/Config.in b/package/freeradius-client/Config.in index 773adb8a09..36a74c3a6d 100644 --- a/package/freeradius-client/Config.in +++ b/package/freeradius-client/Config.in @@ -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. diff --git a/package/freeradius-client/freeradius-client.mk b/package/freeradius-client/freeradius-client.mk index 981ed163e0..b113643415 100644 --- a/package/freeradius-client/freeradius-client.mk +++ b/package/freeradius-client/freeradius-client.mk @@ -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