ar71xx: use automatic firmware partition splitting for devolo dLAN devices
[openwrt/staging/chunkeey.git] / scripts / ext-toolchain.sh
index d1e163fd68973032ccd1e9b3e4e7ed95bdf0dbab..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
@@ -356,6 +356,10 @@ print_config() {
        echo "CONFIG_TOOLCHAIN_PREFIX=\"$prefix\"" >> "$config"
        echo "CONFIG_TARGET_NAME=\"$target\"" >> "$config"
 
+       if [ "$LIBC_TYPE" != glibc ]; then
+               echo "CONFIG_TOOLCHAIN_LIBC=\"$LIBC_TYPE\"" >> "$config"
+       fi
+
        local lib
        for lib in C RT PTHREAD GCC STDCPP SSP GFORTRAN; do
                local file