Changeset a1ad522 for chapter07/stripping.xml
- Timestamp:
- 08/23/2020 08:15:14 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- 7091d59
- Parents:
- e9a3e8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/stripping.xml
re9a3e8f ra1ad522 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.