aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2024-05-30 04:01:15 -0300
committerAlexandre Oliva <oliva@gnu.org>2024-05-30 04:01:15 -0300
commit5955c18dfb970740d55d432aeee5cb5a6f51cf65 (patch)
treec369621ec903d3eb62ff8a6ed428f400f774e588
parentb6c6d5abf0d31c936f50f8f9073c5e335b9e24b7 (diff)
downloadgcc-5955c18dfb970740d55d432aeee5cb5a6f51cf65.zip
gcc-5955c18dfb970740d55d432aeee5cb5a6f51cf65.tar.gz
gcc-5955c18dfb970740d55d432aeee5cb5a6f51cf65.tar.bz2
[libstdc++-v3] [rtems] enable filesystem support
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.
-rwxr-xr-xlibstdc++-v3/configure7
-rw-r--r--libstdc++-v3/configure.ac7
2 files changed, 14 insertions, 0 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 5179cc5..5645e99 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -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
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index 37396bd..ccb24a8 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -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