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>
This commit is contained in:
		 Konstantin Demin
					Konstantin Demin
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							c571ac4bdf
						
					
				
				
					commit
					ddd49e82f6
				
			| @@ -154,6 +154,11 @@ test_feature() { | |||||||
| find_libs() { | find_libs() { | ||||||
| 	local spec="$(echo "$LIB_SPECS" | sed -ne "s#^[[:space:]]*$1:##ip")" | 	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 | 	if [ -n "$spec" ] && probe_cpp; then | ||||||
| 		local libdir libdirs | 		local libdir libdirs | ||||||
| 		for libdir in $( | 		for libdir in $( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user