From 86e37015a4b9e0c92701ab3cc3c2ec99a3988d35 Mon Sep 17 00:00:00 2001 From: blogic Date: Tue, 14 Jul 2015 09:57:52 +0000 Subject: [PATCH] scripts: fix 64bit uclibc external toolchain detection according to gcc, UCLIBC_DYNAMIC_LINKER64 Signed-off-by: Dirk Neukirchen git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46362 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/ext-toolchain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh index 3ebaa21487..a552fbe3fc 100755 --- a/scripts/ext-toolchain.sh +++ b/scripts/ext-toolchain.sh @@ -91,7 +91,7 @@ test_uclibc() { local sysroot="$("$CC" $CFLAGS -print-sysroot 2>/dev/null)" if [ -d "${sysroot:-$TOOLCHAIN}" ]; then local lib - for lib in "${sysroot:-$TOOLCHAIN}"/{lib,usr/lib,usr/local/lib}/ld-uClibc*.so*; do + for lib in "${sysroot:-$TOOLCHAIN}"/{lib,usr/lib,usr/local/lib}/ld*-uClibc*.so*; do if [ -f "$lib" ] && [ ! -h "$lib" ]; then return 0 fi -- 2.11.0