Changeset 3349a3a in clfs-sysroot for BOOK/final-system/common/stripping.xml
- Timestamp:
- May 27, 2006, 9:02:20 PM (18 years ago)
- Branches:
- master
- Children:
- d9bec84
- Parents:
- f6c417f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/stripping.xml
rf6c417f r3349a3a 23 23 backup of the current situation.</para> 24 24 25 <para os="c">Before performing the stripping, take special care to ensure that 26 none of the binaries that are about to be stripped are running. If 27 unsure whether the user entered chroot with the command given in 28 <!-- <xref linkend="chapter-chroot" role=","/> --> first exit from 29 chroot:</para> 30 31 <screen os="d" role="nodump"><userinput>logout</userinput></screen> 32 33 <para os="e">Then reenter it with:</para> 34 35 <screen os="f" role="nodump"><userinput>chroot $LFS /tools/bin/env -i \ 36 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 37 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ 38 /tools/bin/bash --login</userinput></screen> 39 40 <para os="g">Now the binaries and libraries can be safely stripped:</para> 41 42 <screen os="h"><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \ 43 -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen> 25 <screen os="c"><userinput>find ${LFS}/{,usr/}{bin,lib,sbin} -type f \ 26 -exec ${LFS_TARGET}-strip --strip-debug '{}' ';'</userinput></screen> 44 27 45 28 <para os="i">A large number of files will be reported as having their file
Note: See TracChangeset
for help on using the changeset viewer.