mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-21 22:48:31 +00:00
17700191e9
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4603 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
25 lines
764 B
XML
25 lines
764 B
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
|
<sect1 id="ch-system-strippingagain">
|
|
<title>Stripping Again</title>
|
|
<?dbhtml filename="strippingagain.html"?>
|
|
|
|
<para>Exit from chroot:</para>
|
|
|
|
<screen><userinput>logout</userinput></screen>
|
|
|
|
<para>Reenter with:</para>
|
|
|
|
<screen><userinput>chroot $LFS /tools/bin/env -i \
|
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
|
/tools/bin/bash --login</userinput></screen>
|
|
|
|
<para>Strip the binaries and libraries:</para>
|
|
|
|
<screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
|
|
-exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
|
|
|
|
</sect1>
|
|
|