X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=scripts%2Fext-toolchain.sh;h=fbe8639c9c558a4ea8ea74ebccc36be64ecc1a0d;hp=3ebaa214879e248facf5b69ac75497b51580a5f5;hb=827f108b42504bd468a771cf610373d16f8fd378;hpb=9622f68581cea9d607bbd641b89350c2420720d5 diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh index 3ebaa21487..fbe8639c9c 100755 --- a/scripts/ext-toolchain.sh +++ b/scripts/ext-toolchain.sh @@ -3,7 +3,7 @@ # Script for various external toolchain tasks, refer to # the --help output for more information. # -# Copyright (C) 2012 Jo-Philipp Wich +# Copyright (C) 2012 Jo-Philipp Wich # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -35,6 +35,7 @@ LIB_SPECS=" rt: librt-* librt pthread: libpthread-* libpthread stdcpp: libstdc++ + thread_db: libthread-db gcc: libgcc_s ssp: libssp gfortran: libgfortran @@ -91,7 +92,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