scripts: fix 64bit uclibc external toolchain detection
authorJohn Crispin <john@openwrt.org>
Tue, 14 Jul 2015 09:57:52 +0000 (09:57 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 14 Jul 2015 09:57:52 +0000 (09:57 +0000)
according to gcc, UCLIBC_DYNAMIC_LINKER64

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 46362

scripts/ext-toolchain.sh

index 3ebaa214879e248facf5b69ac75497b51580a5f5..a552fbe3fcce3dfff791cc1ce65fdd8e70ace1aa 100755 (executable)
@@ -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