https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103866

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #1)
> 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.

I think even after that, cross compile will still fail because
GLIBCXX_CROSSCONFIG will do this:
    AC_MSG_ERROR([No support for this host/target combination.])

Which means that might need to be patched checking hosted_libstdcxx before
printing out that error message.

Or the person could do --with-newlib and bypass GLIBCXX_CROSSCONFIG .

Reply via email to