Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2014-06-10 07:09:35 +0400
committerDJ Delorie <dj@redhat.com>2014-06-10 07:09:35 +0400
commitd043b4c527db22a7c753962ac65129e99c884e49 (patch)
treec618cc8ea3d226ba3991b1274af914074e3ec5bf /newlib/configure.host
parent4d79de90e119c12adcadb5c00208ce608d385dd3 (diff)
* 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.host9
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"