mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
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:
parent
ae6e5983d8
commit
958de508aa
@ -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
|
||||
|
@ -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} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user