- Timestamp:
- 03/31/2021 10:41:40 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- ee1eb70
- Parents:
- 4ea78e0
- git-author:
- Thomas Trepl <thomas@…> (08/23/2020 08:15:14 AM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:40 AM)
- Location:
- chapter07
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/libstdc++-pass2.xml
r4ea78e0 rd7e0db5 63 63 <para>Prepare libstdc++ for compilation:</para> 64 64 65 <screen arch="default"><userinput remap="configure"> 66 ../libstdc++-v3/configure \ 65 <screen arch="default"><userinput remap="configure">../libstdc++-v3/configure \ 67 66 CXXFLAGS="-g -O2 -D_GNU_SOURCE" \ 68 67 --prefix=/usr \ -
chapter07/perl.xml
r4ea78e0 rd7e0db5 49 49 -Dprefix=/usr \ 50 50 -Dvendorprefix=/usr \ 51 -Dprivlib=/usr/lib/perl5/ 5.32/core_perl \52 -Darchlib=/usr/lib/perl5/ 5.32/core_perl \53 -Dsitelib=/usr/lib/perl5/ 5.32/site_perl \54 -Dsitearch=/usr/lib/perl5/ 5.32/site_perl \55 -Dvendorlib=/usr/lib/perl5/ 5.32/vendor_perl \56 -Dvendorarch=/usr/lib/perl5/ 5.32/vendor_perl</userinput></screen>51 -Dprivlib=/usr/lib/perl5/&perl-version-min;/core_perl \ 52 -Darchlib=/usr/lib/perl5/&perl-version-min;/core_perl \ 53 -Dsitelib=/usr/lib/perl5/&perl-version-min;/site_perl \ 54 -Dsitearch=/usr/lib/perl5/&perl-version-min;/site_perl \ 55 -Dvendorlib=/usr/lib/perl5/&perl-version-min;/vendor_perl \ 56 -Dvendorarch=/usr/lib/perl5/&perl-version-min;/vendor_perl</userinput></screen> 57 57 58 58 <variablelist> -
chapter07/stripping.xml
r4ea78e0 rd7e0db5 16 16 While still in chroot, remove those files now:</para> 17 17 18 <screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen> 18 <screen arch="default"><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen> 19 <screen arch="ml_32"><userinput>find /usr/{lib{,32},libexec} -name \*.la -delete</userinput></screen> 20 <screen arch="ml_x32"><userinput>find /usr/{lib{,x32},libexec} -name \*.la -delete</userinput></screen> 21 <screen arch="ml_all"><userinput>find /usr/{lib{,{,x}32},libexec} -name \*.la -delete</userinput></screen> 22 23 <para>Remove the documentation of the temporary tools, to prevent them 24 from ending up in the final system, and save about 35 MB:</para> 25 26 <screen><userinput>rm -rf /usr/share/{info,man,doc}/*</userinput></screen> 19 27 20 28 <note><para> … … 83 91 84 92 <para>Strip off debugging symbols from binaries:</para> 85 <screen role="nodump"><userinput>strip --strip-debug $LFS/usr/lib/* 93 <screen arch="default" role="nodump"><userinput>strip --strip-debug $LFS/usr/lib/* 94 strip --strip-unneeded $LFS/usr/{,s}bin/* 95 strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> 96 <screen arch="ml_32" role="nodump"><userinput>strip --strip-debug $LFS/usr/lib{,32}/* 97 strip --strip-unneeded $LFS/usr/{,s}bin/* 98 strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> 99 <screen arch="ml_x32" role="nodump"><userinput>strip --strip-debug $LFS/usr/lib{,x32}/* 100 strip --strip-unneeded $LFS/usr/{,s}bin/* 101 strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> 102 <screen arch="ml_all" role="nodump"><userinput>strip --strip-debug $LFS/usr/lib{,{,x}32}/* 86 103 strip --strip-unneeded $LFS/usr/{,s}bin/* 87 104 strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> … … 97 114 ones would be destroyed and the toolchain packages would need to be 98 115 built all over again.</para> 99 100 <para>To save more space (slightly more than 35 MB), remove the documentation:</para>101 102 <screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen>103 116 104 117 <para>At this point, you should have at least 5 GB of free space on the
Note:
See TracChangeset
for help on using the changeset viewer.