RTEMS Source Builder | Add std::filesystem cddir and mkdir support to libstdc++v3 (#46)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Wed Nov 13 11:06:43 UTC 2024
Sebastian Huber commented: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/46#note_114840
The right place is probably:
```
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index e59bcdb2944..79512a398c2 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -353,6 +353,31 @@ else
AC_DEFINE(HAVE_ICONV)
AC_DEFINE(HAVE_MEMALIGN)
+
+ case "${target}" in
+ *-rtems*)
+ case "${target}" in
+ bfin* | lm32* | mips* | moxie* | or1k* | v850*)
+ ;;
+ *)
+ AC_DEFINE(HAVE_TLS)
+ ;;
+ esac
+ AC_DEFINE(HAVE_ALIGNED_ALLOC)
+ AC_DEFINE(HAVE_AT_QUICK_EXIT)
+ AC_DEFINE(HAVE_LINK)
+ AC_DEFINE(HAVE_POLL)
+ AC_DEFINE(HAVE_QUICK_EXIT)
+ AC_DEFINE(HAVE_READLINK)
+ AC_DEFINE(HAVE_SETENV)
+ AC_DEFINE(HAVE_SLEEP)
+ AC_DEFINE(HAVE_SOCKATMARK)
+ AC_DEFINE(HAVE_STRERROR_L)
+ AC_DEFINE(HAVE_SYMLINK)
+ AC_DEFINE(HAVE_TRUNCATE)
+ AC_DEFINE(HAVE_USLEEP)
+ ;;
+ esac
elif test "x$with_headers" != "xno"; then
GLIBCXX_CROSSCONFIG
fi
```
See
```
commit e0466d32eb3422e6d206a16845e4e594d3a0f2b2
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jun 8 08:44:36 2022 +0200
Enable some features for RTEMS in libstdc++
Remove RTEMS support from crossconfig.m4 since this code is not used due to
"with_newlib" being "yes".
libstdc++-v3/ChangeLog:
* configure: Regnerate.
* configure.ac (newlib, *-rtems*): Enable TLS support for all RTEMS
targets except bfin, lm32, mips, moxie, or1k, and v850.
For all RTEMS targets, define HAVE_ALIGNED_ALLOC, HAVE_AT_QUICK_EXIT,
HAVE_LINK, HAVE_POLL, HAVE_QUICK_EXIT, HAVE_READLINK, HAVE_SETENV,
HAVE_SLEEP, HAVE_SOCKATMARK, HAVE_STRERROR_L, HAVE_SYMLINK,
HAVE_TRUNCATE, and HAVE_USLEEP.
* crossconfig.m4 (*-rtems*): Remove.
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/46#note_114840
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241113/6f58fb13/attachment.htm>
More information about the bugs
mailing list