diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-13 13:55:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-18 07:45:09 +0200 |
commit | 065d77dd0232efb4a49494ff9d2797da9c537e28 (patch) | |
tree | 9611ba734325a62d91ec9e1f74da9ea85acf1688 /newlib/configure | |
parent | 5c7af4227d324c2aa83e4fc4042a1b52147907f4 (diff) | |
download | newlib-065d77dd0232efb4a49494ff9d2797da9c537e28.zip newlib-065d77dd0232efb4a49494ff9d2797da9c537e28.tar.gz newlib-065d77dd0232efb4a49494ff9d2797da9c537e28.tar.bz2 |
Add --enable-newlib-reent-binary-compat
Add the --enable-newlib-reent-binary-compat configure option. This option is
disabled by default. If enabled, then unused members in struct _reent are
preserved to maintain the structure layout.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-x | newlib/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/newlib/configure b/newlib/configure index c83511d..60cbc1f 100755 --- a/newlib/configure +++ b/newlib/configure @@ -972,6 +972,7 @@ enable_newlib_iconv_external_ccs enable_newlib_atexit_dynamic_alloc enable_newlib_global_atexit enable_newlib_reent_small +enable_newlib_reent_binary_compat enable_newlib_global_stdio_streams enable_newlib_fvwrite_in_streamio enable_newlib_fseek_optimization @@ -1639,6 +1640,7 @@ Optional Features: --disable-newlib-atexit-dynamic-alloc disable dynamic allocation of atexit entries --enable-newlib-global-atexit enable atexit data structure as global --enable-newlib-reent-small enable small reentrant struct support + --enable-newlib-reent-binary-compat enable backward binary compatibility for struct _reent --enable-newlib-global-stdio-streams enable global stdio streams --disable-newlib-fvwrite-in-streamio disable iov in streamio --disable-newlib-fseek-optimization disable fseek optimization @@ -2390,6 +2392,19 @@ else newlib_reent_small= fi +# Check whether --enable-newlib-reent-binary-compat was given. +if test "${enable_newlib_reent_binary_compat+set}" = set; then : + enableval=$enable_newlib_reent_binary_compat; if test "${newlib_reent_binary_compat+set}" != set; then + case "${enableval}" in + yes) newlib_reent_binary_compat=yes ;; + no) newlib_reent_binary_compat=no ;; + *) as_fn_error $? "bad value ${enableval} for newlib-enable-reent-binary-compat option" "$LINENO" 5 ;; + esac + fi +else + newlib_reent_binary_compat=no +fi + # Check whether --enable-newlib-global-stdio-streams was given. if test "${enable_newlib_global_stdio_streams+set}" = set; then : enableval=$enable_newlib_global_stdio_streams; case "${enableval}" in @@ -6418,6 +6433,12 @@ $as_echo "#define _WANT_REENT_SMALL 1" >>confdefs.h fi +if test "${newlib_reent_binary_compat}" = "yes"; then + +$as_echo "#define _WANT_REENT_BACKWARD_BINARY_COMPAT 1" >>confdefs.h + +fi + if test "${newlib_global_stdio_streams}" = "yes"; then $as_echo "#define _WANT_REENT_GLOBAL_STDIO_STREAMS 1" >>confdefs.h |