buildroot: allow specifying libc personality for external toolchains

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35703 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Jo-Philipp Wich
2013-02-20 15:06:10 +00:00
parent b80aa55594
commit 5d7f822b66
3 changed files with 16 additions and 1 deletions

View File

@@ -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