]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/config.h.in
Fix bootstrap failure for bare metal due to autoconf link tests
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jun 2018 16:01:24 +0000 (16:01 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jun 2018 16:01:24 +0000 (16:01 +0000)
commit84f1425ee580687a23e0539e3ac9c43871e553ce
tree0dc2a7bc7a7e38b18f00fadfd60b9ae269288e19
parent1143dcb41617e18796fa3f68f1d3d409ee9ab03a
Fix bootstrap failure for bare metal due to autoconf link tests

The AC_CHECK_FUNCS tests cause the build to fail for bare metal cross
compilers, where link tests are not allowed. Replace them with
GCC_TRY_COMPILE_OR_LINK tests instead. Skip all the Filesystem
dependency checks if not building the filesystem library.

* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Only check when
enable_libstdcxx_filesystem_ts = yes. Check for link, readlink and
symlink.
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Remove AC_CHECK_FUNCS for link, readlink and symlink.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261704 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/configure.ac