aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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
commit9622f68581cea9d607bbd641b89350c2420720d5 (patch)
treec5bce9c0e9c3c31376ed6bec317a21ddb008e427 /scripts
parent330ae61b1b8e136b268d2a9316e434a6ca842979 (diff)
downloadupstream-9622f68581cea9d607bbd641b89350c2420720d5.tar.gz
upstream-9622f68581cea9d607bbd641b89350c2420720d5.tar.bz2
upstream-9622f68581cea9d607bbd641b89350c2420720d5.zip
buildroot: allow specifying libc personality for external toolchains
SVN-Revision: 35703
Diffstat (limited to 'scripts')
-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