https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116362
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Hans-Peter Nilsson <h...@gcc.gnu.org>: https://gcc.gnu.org/g:1b8b53ef75c143cddc114705c97c74d9c8f7a64b commit r15-2945-g1b8b53ef75c143cddc114705c97c74d9c8f7a64b Author: Hans-Peter Nilsson <h...@axis.com> Date: Tue Aug 13 19:23:43 2024 +0200 libstdc++-v3: Handle iconv as optional for newlib builds [PR116362] Support for iconv in newlib seems to have been always assumed present by libstdc++-v3, but is default off. Though, it hasn't been used before recent libstdc++ changes that actually call iconv functions. This now leads to failures exposed by running the test-suite, unless the newlib being used has been explicitly configured with --enable-newlib-iconv. When failing, there are undefined references to iconv, iconv_open or iconv_close for multiple tests. Thankfully there's a macro in newlib.h that we can check to detect presence of iconv support for the newlib build that's used. libstdc++-v3: PR libstdc++/116362 * configure.ac: Check newlib configuration whether iconv is enabled. * configure: Regenerate.