newlib: Support --with/without-newlib-tls

This RSB option defines if the --enable-newlib-reent-thread-local
(_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option is used or not.

Update #4560.
This commit is contained in:
Sebastian Huber 2022-06-22 08:44:44 +02:00
parent ae6e5983d8
commit 958de508aa
2 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,8 @@
%{?without_java:%define enable_java 0}
%{?with_objc:%define enable_objc 1}
%{?without_objc:%define enable_objc 0}
%{?with_newlib_tls:%define enable_newlib_tls 1}
%{?without_newlib_tls:%define enable_newlib_tls 0}
#
# Default to C++ on.
@ -72,3 +74,10 @@
%ifn %{defined enable_obsolete}
%define enable_obsolete 0
%endif
#
# Default to Newlib thread-local storage instead of struct _reent off.
#
%ifn %{defined enable_newlib_tls}
%define enable_newlib_tls 0
%endif

View File

@ -192,6 +192,7 @@ URL: http://gcc.gnu.org/
--enable-version-specific-runtime-libs \
--enable-newlib-io-c99-formats \
%{?disable_MAKEINFO:MAKEINFO=missing} \
%{?enable_newlib_tls:--enable-newlib-reent-thread-local} \
%{?with_iconv:--enable-newlib-iconv} \
%{?with_iconv:--enable-newlib-iconv-encodings=%{_newlib_iconv_encodings}} \
%{?with_threads:--enable-threads}%{!?with_threads:--disable-threads} \