aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ext-toolchain.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-02-20 15:06:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-02-20 15:06:10 +0000
commit5d7f822b6605be87aecedaf120df5110b594ebe4 (patch)
tree60e2c1d838268a4806574baf7268119a4255db9b /scripts/ext-toolchain.sh
parentb80aa55594417b6b1188b860796fdcf4d925fc4e (diff)
downloadmaster-187ad058-5d7f822b6605be87aecedaf120df5110b594ebe4.tar.gz
master-187ad058-5d7f822b6605be87aecedaf120df5110b594ebe4.tar.bz2
master-187ad058-5d7f822b6605be87aecedaf120df5110b594ebe4.zip
buildroot: allow specifying libc personality for external toolchains
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35703 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/ext-toolchain.sh')
-rwxr-xr-xscripts/ext-toolchain.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index d1e163fd68..3ebaa21487 100755
--- a/scripts/ext-toolchain.sh
+++ b/scripts/ext-toolchain.sh
@@ -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