summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Demin2025-07-04 08:03:14 +0000
committerHauke Mehrtens2025-07-12 21:38:19 +0000
commitddd49e82f605933c46d20703c87faa67b5878eb1 (patch)
tree12f319be5790e75cc59e4fe640ad636233562936
parentc571ac4bdf25b23b333f380591176628c5a20610 (diff)
downloadopenwrt-ddd49e82f605933c46d20703c87faa67b5878eb1.tar.gz
scripts/ext-toolchain: adjust with recent glibc
glibc 2.39 has removed libcrypt completely. Signed-off-by: Konstantin Demin <rockdrilla@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19293 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rwxr-xr-xscripts/ext-toolchain.sh5
1 files changed, 5 insertions, 0 deletions
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 $(