Ignore:
Timestamp:
05/03/2020 09:02:51 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, 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:
a715dec
Parents:
9d719e2
Message:

Make the new book

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/stripping.xml

    r9d719e2 refcb393  
    1616  debugging symbols. Remove those symbols with:</para>
    1717
    18 <screen><userinput>strip --strip-debug /tools/lib/*
    19 /usr/bin/strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
     18<screen><userinput>$LFS_TGT-strip --strip-debug $LFS/usr/lib/*
     19$LFS_TGT-strip --strip-unneeded $LFS/usr/{,s}bin/*</userinput></screen>
    2020
    2121  <para>These commands will skip a number of files, reporting that it does not
    2222  recognize their file format. Most of these are scripts instead of binaries.
    23   Also use the system strip command to include the strip binary in /tools.</para>
     23  Note that we use the <command>strip</command> program built in
     24  <quote>Binutils pass 1</quote>, since it is the one that knows how to strip
     25  our cross-compiled programs.</para>
     26<!-- Normally, the host "strip" could be used too, since it is actually the
     27same computer. But Some old versions of binutils may generate buggy crt1.o
     28and the like, because they do not know about recently introduced symbol
     29types. For more details,
     30see https://sourceware.org/bugzilla/show_bug.cgi?id=22875-->
    2431
    2532  <para>Take care <emphasis>not</emphasis> to use
     
    3037  <para>To save more, remove the documentation:</para>
    3138
    32 <screen><userinput>rm -rf /tools/{,share}/{info,man,doc}</userinput></screen>
     39<screen><userinput>rm -rf $LFS/usr/{,share}/{info,man,doc}</userinput></screen>
    3340
    3441  <para>The libtool .la files are only useful when linking with static
     
    3744  Remove those files now:</para>
    3845
    39 <screen><userinput>find /tools/{lib,libexec} -name \*.la -delete</userinput></screen>
     46<screen><userinput>find $LFS/usr/{lib,libexec} -name \*.la -delete</userinput></screen>
    4047
    4148  <para>At this point, you should have at least 3 GB of free space in
Note: See TracChangeset for help on using the changeset viewer.