[gcc] Enable TLS support for RTEMS in libstdc++

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jun 8 06:51:13 UTC 2022


libstdc++-v3/ChangeLog:

	* crossconfig.m4 (*-rtems*): Enable TLS support for all RTEMS targets
	except mips.
---
 libstdc++-v3/crossconfig.m4 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
index ae5283b7ad3..732f6818074 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -249,6 +249,13 @@ case "${host}" in
     GLIBCXX_CHECK_LINKER_FEATURES
     GLIBCXX_CHECK_MATH_SUPPORT
     GLIBCXX_CHECK_STDLIB_SUPPORT
+    case "$target" in
+      mips*-rtems*)
+        ;;
+      *)
+        AC_DEFINE(HAVE_TLS)
+        ;;
+    esac
     ;;
   *-tpf)
     SECTION_FLAGS='-ffunction-sections -fdata-sections'
-- 
2.35.3



More information about the devel mailing list