From d043b4c527db22a7c753962ac65129e99c884e49 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 10 Jun 2014 03:09:35 +0000 Subject: * configure.host (default_newlib_nano_malloc): New. (msp430): Set it. * configure.in (newlib_nano_malloc): Leave unset if not set by the user. * configure: Regenerate. * libc/configure.in (NEWLIB_NANO_MALLOC): Set after running configure.host. (newlib_nano_malloc): Leave unset if not set by the user. * libc/configure: Regenerate. --- newlib/configure.host | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'newlib/configure.host') 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" -- cgit v1.2.3