summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2016-03-26 16:11:43 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2016-03-26 16:11:43 (GMT)
commite1d494a2489bc469f4a50a6942fa15255621e985 (patch)
treee4ce86572416d14954683d0334ed4d3ba2594e8d /scripts
parenta41b269af6001e47df0c6f42cad13e32526b22cb (diff)
parent6476f8a9403bd3c4b1477a23d0bbba1961ed9f66 (diff)
Merge pull request #320 from bhundven/newlib_updates
Newlib updates
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/newlib.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index ba52268..e70b669 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -65,6 +65,11 @@ do_libc() {
CT_DoLog EXTRA "Configuring C library"
+ # Multilib is the default, so if it is not enabled, disable it.
+ if [ "${CT_MULTILIB}" != "y" ]; then
+ extra_config+=("--disable-multilib")
+ fi
+
if [ "${CT_LIBC_NEWLIB_IO_C99FMT}" = "y" ]; then
newlib_opts+=( "--enable-newlib-io-c99-formats" )
else
@@ -91,6 +96,12 @@ do_libc() {
else
newlib_opts+=( "--enable-newlib-supplied-syscalls" )
fi
+ if [ "${CT_LIBC_NEWLIB_NANO_MALLOC}" = "y" ]; then
+ newlib_opts+=( "--enable-newlib-nano-malloc" )
+ fi
+ if [ "${CT_LIBC_NEWLIB_NANO_FORMATTED_IO}" = "y" ]; then
+ newlib_opts+=( "--enable-newlib-nano-formatted-io" )
+ fi
[ "${CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE}" = "y" ] && newlib_opts+=("--enable-target-optspace")