gcc-pass2: Fix description of LDFLAGS_FOR_TARGET=

Pass 2 libstdc++ still links to libgcc.a even with LDFLAGS_FOR_TARGET=,
despite this libgcc.a is from pass 2 instead of pass 1.

The difference between pass 2 libgcc and pass 1 libgcc is Glibc wasn't
installed when the pass 1 libgcc was built.  This difference causes both
consequences (1) pass 1 libgcc lacks shared library and (2) pass 1
libgcc cannot support C++ EH, but it's not (1) causing (2).
This commit is contained in:
Xi Ruoyao 2024-08-18 21:03:47 +08:00
parent 837731717d
commit 217802b9c0
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -138,10 +138,11 @@ cd build</userinput></screen>
<term><parameter>LDFLAGS_FOR_TARGET=...</parameter></term> <term><parameter>LDFLAGS_FOR_TARGET=...</parameter></term>
<listitem> <listitem>
<para>Allow <filename class="libraryfile">libstdc++</filename> to <para>Allow <filename class="libraryfile">libstdc++</filename> to
use the shared <filename class="libraryfile">libgcc</filename> being use the <filename class="libraryfile">libgcc</filename> being
built in this pass, instead of the static version that was built in GCC built in this pass, instead of the previous version built in
pass 1. This is necessary to support C++ exception <xref linkend='ch-tools-gcc-pass1'/>. The previous version cannot
handling.</para> properly support C++ exception handling because it was built
without libc support.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>