diff options
author | Dmitry Pankratov <dp@ubiquitech.com> | 2016-03-30 03:41:36 (GMT) |
---|---|---|
committer | Dmitry Pankratov <dp@ubiquitech.com> | 2016-03-30 03:41:36 (GMT) |
commit | f6d8dc44111c6e96706eed8b0ae0483e2fb63856 (patch) | |
tree | cd887f1933db75af480dc8fe4a03f30a9d7738a7 /scripts/build/libc/newlib.sh | |
parent | 78c683c3566614515d814f8b24c52d54fe4788b7 (diff) | |
parent | e1d494a2489bc469f4a50a6942fa15255621e985 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'scripts/build/libc/newlib.sh')
-rw-r--r-- | scripts/build/libc/newlib.sh | 11 |
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") |