[Bug libstdc++/100057] There are no freestanding C++

unlvsur at live dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 29 23:57:53 GMT 2021


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

--- Comment #36 from cqwrteur <unlvsur at live dot com> ---
(In reply to Nicolas Noble from comment #34)
> After some digging, I found out this in the acinclude.m4 file of the
> libstdc++-v3 folder:
> 
> AC_DEFUN([GLIBCXX_ENABLE_HOSTED], [
>   AC_ARG_ENABLE([hosted-libstdcxx],
>     AC_HELP_STRING([--disable-hosted-libstdcxx],
>                    [only build freestanding C++ runtime support]),,
>     [case "$host" in
>         arm*-*-symbianelf*)
>             enable_hosted_libstdcxx=no
>             ;;
>         *)
>             enable_hosted_libstdcxx=yes
>             ;;
>      esac])
> 
> 
> Basically, it looks like the "disable hosted libstdc++" flag is only honored
> when building on a host triple that's arm + symbian. The documentation +
> reporting for this is extremely misguiding. The documentation should at
> least specify this only works in a very narrow context, and the configure
> script should probably error out if the user asks for a feature it can't
> actually provide.

DEATH TO WG21


More information about the Gcc-bugs mailing list