Ignore:
Timestamp:
08/23/2020 08:15:14 AM (4 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
7091d59
Parents:
e9a3e8f
Message:

Merge changes from trunk to multilib

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@12034 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/stripping.xml

    re9a3e8f ra1ad522  
    1616  While still in chroot, remove those files now:</para>
    1717
    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>
    1927
    2028  <note><para>
     
    8391
    8492    <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/*
     94strip --strip-unneeded $LFS/usr/{,s}bin/*
     95strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
     96<screen arch="ml_32" role="nodump"><userinput>strip --strip-debug $LFS/usr/lib{,32}/*
     97strip --strip-unneeded $LFS/usr/{,s}bin/*
     98strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
     99<screen arch="ml_x32" role="nodump"><userinput>strip --strip-debug $LFS/usr/lib{,x32}/*
     100strip --strip-unneeded $LFS/usr/{,s}bin/*
     101strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
     102<screen arch="ml_all" role="nodump"><userinput>strip --strip-debug $LFS/usr/lib{,{,x}32}/*
    86103strip --strip-unneeded $LFS/usr/{,s}bin/*
    87104strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
     
    97114    ones would be destroyed and the toolchain packages would need to be
    98115    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>
    103116
    104117    <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.