]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[libstdc++-v3] [rtems] enable filesystem support
authorAlexandre Oliva <oliva@adacore.com>
Thu, 30 May 2024 07:01:15 +0000 (04:01 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 30 May 2024 07:01:15 +0000 (04:01 -0300)
mkdir, chdir and chmod functions are defined in librtemscpu, that
doesn't get linked in during libstdc++-v3 configure, but applications
use -qrtems for linking, which brings those symbols in, so it makes
sense to mark them as available so that the C++ filesystem APIs are
enabled.

for  libstdc++-v3/ChangeLog

* configure.ac [*-*-rtems*]: Set chdir, chmod and mkdir as
available.
* configure: Rebuilt.

libstdc++-v3/configure
libstdc++-v3/configure.ac

index 5179cc507f1290ef5164425c0a013bd711381ff9..5645e991af7ab8b8f6373f2f5e72d0c4ecc3cc6d 100755 (executable)
@@ -28610,6 +28610,13 @@ _ACEOF
 
         $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
 
+
+        # These functions are defined in librtemscpu.  We don't use
+        # -qrtems during configure, so we don't link that in, and fail
+        # to find them.
+        glibcxx_cv_chdir=yes
+        glibcxx_cv_chmod=yes
+        glibcxx_cv_mkdir=yes
         ;;
     esac
   elif test "x$with_headers" != "xno"; then
index 37396bd6ebbe64a29fb631ced2bc8d94214ffe23..ccb24a82be7993da5468ade43b03c01b6142a25f 100644 (file)
@@ -400,6 +400,13 @@ dnl # rather than hardcoding that information.
         AC_DEFINE(HAVE_SYMLINK)
         AC_DEFINE(HAVE_TRUNCATE)
         AC_DEFINE(HAVE_USLEEP)
+
+        # These functions are defined in librtemscpu.  We don't use
+        # -qrtems during configure, so we don't link that in, and fail
+        # to find them.
+        glibcxx_cv_chdir=yes
+        glibcxx_cv_chmod=yes
+        glibcxx_cv_mkdir=yes
         ;;
     esac
   elif test "x$with_headers" != "xno"; then