Hello, II tried compiling avr-gcc (AVR 8-bit target) with libstdcxx support, and even if I set the configure parameters to be "disable-shared" and "enable-static", the "configure" step fails because it checks for dlopen() support in avrlibc (which doesn't exist).
I see that in the newlib case, the failing step is skipped, so I've just added branch to the condition, to skip the same check for avrlibc. Please double-check this patch, as it's my first commit to the GCC project, and I had to manually adjust a couple of things for the regeneration step to work out. Thank you, Adrian Stratulat
Index: libstdc++-v3/ChangeLog =================================================================== --- libstdc++-v3/ChangeLog (revision 264043) +++ libstdc++-v3/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2018-09-02 Adrian Stratulat <adrian.stratula...@gmail.com> + + * configure.ac: Skip dlopen check for avrlibc builds. + * configure: Regenerate + 2018-09-02 François Dumont <fdum...@gcc.gnu.org> * include/debug/safe_iterator.h Index: libstdc++-v3/configure =================================================================== --- libstdc++-v3/configure (revision 264043) +++ libstdc++-v3/configure (working copy) @@ -5376,7 +5376,9 @@ $as_echo "$as_me: OS config directory is # Libtool setup. -if test "x${with_newlib}" != "xyes"; then +if test "x${with_newlib}" != "xyes" && + test "x${with_avrlibc}" != "xyes"; +then enable_dlopen=yes Index: libstdc++-v3/configure.ac =================================================================== --- libstdc++-v3/configure.ac (revision 264043) +++ libstdc++-v3/configure.ac (working copy) @@ -89,7 +89,9 @@ CXXFLAGS="$save_CXXFLAGS" GLIBCXX_CONFIGURE # Libtool setup. -if test "x${with_newlib}" != "xyes"; then +if test "x${with_newlib}" != "xyes" && + test "x${with_avrlibc}" != "xyes"; +then AC_LIBTOOL_DLOPEN fi AM_PROG_LIBTOOL