gcc-pass2: Disable libsanitizer

Building libsanitizer needs libcrypt.  Disable it so we don't need to
add libxcrypt into Chapter 6.
This commit is contained in:
Xi Ruoyao 2023-06-30 06:32:31 +08:00
parent c727d7e7f7
commit f652d5bb26
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -96,6 +96,7 @@ cd build</userinput></screen>
--disable-libatomic \
--disable-libgomp \
--disable-libquadmath \
--disable-libsanitizer \
--disable-libssp \
--disable-libvtv \
--enable-languages=c,c++</userinput></screen>
@ -143,6 +144,19 @@ cd build</userinput></screen>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--disable-libsanitizer</parameter></term>
<listitem>
<para>Disable GCC sanitizer runtime libraries. They are not
needed for the temporary installation. This switch is necessary
to build GCC without
<systemitem class='library'>libcrypt</systemitem> installed for
the target. In <xref linkend='ch-tools-gcc-pass1'/> it was
implied by <parameter>--disable-libstdcxx</parameter>, but now we
have to explicitly pass it.</para>
</listitem>
</varlistentry>
</variablelist>
<para>Compile the package:</para>