From 6a1059850cd28b2bf25eabb5fa1c44d3ff92fd55 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 7 Apr 2024 14:35:50 +0200 Subject: [PATCH] package/rtty: 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-14/output-1/host/lib/gcc/i686-buildroot-linux-gnu/12.3.0/../../../../i686-buildroot-linux-gnu/bin/ld: cannot find -lcrypt: No such file or directory Fixes: b5680f53d60acf8ff6010082f873438a39bd5d97 - http://autobuild.buildroot.org/results/0fd5a118f6173233fc3e9ebc9477948031355dd7 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/rtty/Config.in | 1 + package/rtty/rtty.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/rtty/Config.in b/package/rtty/Config.in index 198d465713..da5afb8364 100644 --- a/package/rtty/Config.in +++ b/package/rtty/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_RTTY bool "rtty" depends on BR2_USE_MMU # fork() select BR2_PACKAGE_LIBEV + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC help Access your device's terminal from anywhere via the web. diff --git a/package/rtty/rtty.mk b/package/rtty/rtty.mk index 8a40f584de..b2fac14432 100644 --- a/package/rtty/rtty.mk +++ b/package/rtty/rtty.mk @@ -10,6 +10,10 @@ RTTY_LICENSE = MIT RTTY_LICENSE_FILES = LICENSE RTTY_DEPENDENCIES = libev +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +RTTY_DEPENDENCIES += libxcrypt +endif + ifeq ($(BR2_PACKAGE_MBEDTLS),y) RTTY_DEPENDENCIES += mbedtls RTTY_CONF_OPTS += \