https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103866
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- libstdc++-v3/configure.ac has: # Libtool setup. if test "x${with_newlib}" != "xyes" && test "x${with_avrlibc}" != "xyes"; then AC_LIBTOOL_DLOPEN fi AM_PROG_LIBTOOL ACX_LT_HOST_FLAGS AC_SUBST(enable_shared) AC_SUBST(enable_static) Since I actively avoid understanding what libtool actually does I have no idea if/when we can make that AM_PROG_LIBTOOL conditional. Libstdc++ doesn't use dlopen, so maybe we can just add --disable-dlopen. Or maybe --disable-shared should imply --disable-dlopen.