diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-06-30 06:32:31 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-06-30 06:32:31 +0800 |
commit | f652d5bb26aa5f8e3b6db2b74511db5702de7b4f (patch) | |
tree | 1cf86fd2531c26b40e023e8ffd433e5ed5f9fff9 /chapter06 | |
parent | c727d7e7f701db63f6a32d52ff2679289cb86706 (diff) |
gcc-pass2: Disable libsanitizer
Building libsanitizer needs libcrypt. Disable it so we don't need to
add libxcrypt into Chapter 6.
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/gcc-pass2.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index ebc20a296..b342ae484 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -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> |