[openwrt/openwrt] scripts/ext-toolchain: adjust with recent glibc

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 12 14:41:19 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ddd49e82f605933c46d20703c87faa67b5878eb1

commit ddd49e82f605933c46d20703c87faa67b5878eb1
Author: Konstantin Demin <rockdrilla at gmail.com>
AuthorDate: Fri Jul 4 11:03:14 2025 +0300

    scripts/ext-toolchain: adjust with recent glibc
    
    glibc 2.39 has removed libcrypt completely.
    
    Signed-off-by: Konstantin Demin <rockdrilla at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/19293
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 scripts/ext-toolchain.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index e49c011118..2794d2e8ef 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 $(




More information about the lede-commits mailing list