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:
authorMark Mitchell <mark@codesourcery.com>2006-03-21 03:57:34 +0300
committerMark Mitchell <mark@codesourcery.com>2006-03-21 03:57:34 +0300
commit3078fb4f360e44b436bafcd9e7c51f26792e34b4 (patch)
tree73dd0a205a2e36fad8a6f952171248396769b97c /newlib/configure.in
parentc1494e03a2374c5841e7b53e0a97a3af7438cc76 (diff)
* acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
* configure.in (--disable-newlib-atexit-dynamic-alloc): New option. * configure: Regenerated. * newlib.hin: Regenerated. * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc if _ATEXIT_DYNAMIC_ALLOC is undefined. * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free if _ATEXIT_DYNAMIC_ALLOC is undefined.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r--newlib/configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index 5374d67eb..c8dc21176 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -85,6 +85,17 @@ AC_ARG_ENABLE(newlib-iconv-external-ccs,
esac
fi], [newlib_iconv_external_ccs=${newlib_iconv_external_ccs}])dnl
+dnl Support --disable-newlib-atexit-dynamic-alloc
+AC_ARG_ENABLE(newlib-atexit-dynamic-alloc,
+[ --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries],
+[if test "${newlib_atexit_dynamic_alloc+set}" != set; then
+ case "${enableval}" in
+ yes) newlib_atexit_dynamic_alloc=yes ;;
+ no) newlib_atexit_dynamic_alloc=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-atexit-dynamic-alloc option) ;;
+ esac
+ fi], [newlib_atexit_dynamic_alloc=yes])dnl
+
NEWLIB_CONFIGURE(.)
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
@@ -232,6 +243,10 @@ if test "${newlib_iconv_external_ccs}" = "yes"; then
AC_DEFINE_UNQUOTED(_ICONV_ENABLE_EXTERNAL_CCS)
fi
+if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
+AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC)
+fi
+
AC_DEFINE_UNQUOTED(_NEWLIB_VERSION,"$VERSION")
if test "${multilib}" = "yes"; then