diff options
| author | Konstantin Demin | 2025-07-04 08:03:14 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-07-12 21:38:19 +0000 |
| commit | ddd49e82f605933c46d20703c87faa67b5878eb1 (patch) | |
| tree | 12f319be5790e75cc59e4fe640ad636233562936 | |
| parent | c571ac4bdf25b23b333f380591176628c5a20610 (diff) | |
| download | openwrt-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-x | scripts/ext-toolchain.sh | 5 |
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 $( |