- Timestamp:
- 10/09/2022 05:36:17 AM (2 years ago)
- Branches:
- xry111/rust-wip-20221008
- Children:
- 3f6167c
- Parents:
- 6858861
- git-author:
- Xi Ruoyao <xry111@…> (10/08/2022 06:44:47 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (10/09/2022 05:36:17 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc-pass2.xml
r6858861 r28ae5f0 156 156 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 157 157 158 <para> 159 Remove the libtool archive files because they are harmful for 160 cross compilation: 161 </para> 162 163 <screen><userinput remap="install">rm -v $LFS/usr/lib/*.la</userinput></screen> 164 165 <para> 166 Adjust GCC pass 1 so it will be able to use 167 <filename class="libraryfile">libgcc</filename> and C++ headers from 168 GCC pass 2. It's necessary for cross compiling LLVM: 169 </para> 170 171 <screen><userinput remap="install">mv -v $LFS/tools/lib/gcc/$LFS_TGT/&gcc-version;/libgcc.a{,.old} 172 ln -sv $LFS/usr/lib/libgcc_s.so.1 \ 173 $LFS/tools/lib/gcc/$LFS_TGT/&gcc-version;/libgcc.a 174 mv -v $LFS/tools/$LFS_TGT/include/c++{,.old} 175 ln -sv $LFS/usr/include/c++ \ 176 $LFS/tools/$LFS_TGT/include/c++</userinput></screen> 177 158 178 <para>As a finishing touch, create a utility symlink. Many programs and scripts 159 179 run <command>cc</command> instead of <command>gcc</command>, which is
Note:
See TracChangeset
for help on using the changeset viewer.