Changeset 3bb463d
- Timestamp:
- 03/02/2022 10:02:07 AM (2 years ago)
- Branches:
- 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 259b8e0
- Parents:
- 8e0f8a9
- git-author:
- Xi Ruoyao <xry111@…> (03/01/2022 10:09:30 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (03/02/2022 10:02:07 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc-pass2.xml
r8e0f8a9 r3bb463d 108 108 109 109 <varlistentry> 110 <term><parameter>- with-build-sysroot=$LFS</parameter></term>110 <term><parameter>--with-build-sysroot=$LFS</parameter></term> 111 111 <listitem> 112 112 <para>Normally, using <parameter>--host</parameter> ensures that … … 117 117 needed to have them find the needed files in <filename 118 118 class="directory">$LFS</filename>, and not on the host.</para> 119 </listitem> 120 </varlistentry> 121 122 <varlistentry> 123 <term><parameter>--target=$LFS_TGT</parameter></term> 124 <listitem> 125 <para>As we are cross-compiling GCC, it's impossible to build 126 target libraries (<filename class="libraryfile">libgcc</filename> 127 and <filename class="libraryfile">libstdc++</filename>) with the 128 compiled GCC binaries because these binaries won't run on the 129 host distro. GCC building system will attempt to use the 130 C and C++ compilers on the host distro as a workaround by default. 131 It's not supported to build GCC target libraries with a different 132 version of GCC, so using host compilers may cause building 133 failure. This parameter ensures to build the libraries with GCC 134 pass 1 and prevent the issue.</para> 135 </listitem> 136 </varlistentry> 137 138 <varlistentry> 139 <term><parameter>LDFLAGS_FOR_TARGET=...</parameter></term> 140 <listitem> 141 <para>Allow <filename class="libraryfile">libstdc++</filename> to 142 use shared <filename class="libraryfile">libgcc</filename> being 143 built in this pass, instead of the static version built in GCC 144 pass 1. This is needed for supporting C++ exception 145 handling.</para> 119 146 </listitem> 120 147 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.