diff options
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index 1464ba84e..a78a20271 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -71,6 +71,7 @@ default_newlib_io_long_long=no default_newlib_io_long_double=no default_newlib_io_pos_args=no default_newlib_atexit_dynamic_alloc=yes +default_newlib_nano_malloc=no aext=a oext=o lpfx="lib_a-" @@ -229,6 +230,7 @@ case "${host_cpu}" in newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections " newlib_cflags="${newlib_cflags} -mOs " machine_dir=msp430 + default_newlib_nano_malloc="yes" ;; mt*) machine_dir=mt @@ -843,6 +845,13 @@ if [ "x${newlib_atexit_dynamic_alloc}" = "x" ]; then fi fi +# Enable nano-malloc if requested. +if [ "x${newlib_nano_malloc}" = "x" ]; then + if [ ${default_newlib_nano_malloc} = "yes" ]; then + newlib_nano_malloc="yes"; + fi +fi + # Remove rpc headers if xdr_dir not specified if [ "x${xdr_dir}" = "x" ]; then noinclude="${noinclude} rpc/types.h rpc/xdr.h" |