X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fext-toolchain.sh;h=3ebaa214879e248facf5b69ac75497b51580a5f5;hb=94ae230bde50338db113cf088e9d6d73cec0a0da;hp=a34ef0677335cc9e5a3bd52e011444fff9754292;hpb=5a89e8c08e58eb7905b29730f752ed39cffa2b91;p=openwrt.git diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh index a34ef06773..3ebaa21487 100755 --- a/scripts/ext-toolchain.sh +++ b/scripts/ext-toolchain.sh @@ -221,7 +221,7 @@ wrap_bin_ld() { local bin="$2" echo '#!/bin/sh' > "$out" - echo -n 'exec "'"$bin"'" '"$CFLAGS"' ${STAGING_DIR:+' >> "$out" + echo -n 'exec "'"$bin"'" ${STAGING_DIR:+' >> "$out" echo -n '-L "$STAGING_DIR/usr/lib" ' >> "$out" echo '-rpath-link "$STAGING_DIR/usr/lib"} "$@"' >> "$out" @@ -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