From: Konstantin Demin Date: Fri, 4 Jul 2025 08:03:14 +0000 (+0300) Subject: scripts/ext-toolchain: adjust with recent glibc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddd49e82f605933c46d20703c87faa67b5878eb1;p=thirdparty%2Fopenwrt.git scripts/ext-toolchain: adjust with recent glibc glibc 2.39 has removed libcrypt completely. Signed-off-by: Konstantin Demin Link: https://github.com/openwrt/openwrt/pull/19293 Signed-off-by: Hauke Mehrtens --- diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh index e49c011118b..2794d2e8eff 100755 --- a/scripts/ext-toolchain.sh +++ b/scripts/ext-toolchain.sh @@ -154,6 +154,11 @@ test_feature() { find_libs() { local spec="$(echo "$LIB_SPECS" | sed -ne "s#^[[:space:]]*$1:##ip")" + # glibc doesn't have libcrypt since 2.39 + if [ "$LIBC_TYPE" = "glibc" ]; then + spec=$(printf '%s' "${spec}" | sed 's/,crypt,//') + fi + if [ -n "$spec" ] && probe_cpp; then local libdir libdirs for libdir in $(