diff options
author | DJ Delorie <dj@redhat.com> | 2014-06-10 03:09:35 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2014-06-10 03:09:35 +0000 |
commit | d043b4c527db22a7c753962ac65129e99c884e49 (patch) | |
tree | c618cc8ea3d226ba3991b1274af914074e3ec5bf /newlib/configure.host | |
parent | 4d79de90e119c12adcadb5c00208ce608d385dd3 (diff) | |
download | cygnal-d043b4c527db22a7c753962ac65129e99c884e49.tar.gz cygnal-d043b4c527db22a7c753962ac65129e99c884e49.tar.bz2 cygnal-d043b4c527db22a7c753962ac65129e99c884e49.zip |
* 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.
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" |