For what it's worth:

The Chapter 5 section titled "Stripping" is somewhat skewed. Here is
what I get when building exactly by the book (other than I use a user
different than the LFS user and I install the BC and Vim packages).

[EMAIL PROTECTED]: /mnt/rmlnew1/tools > ls -l
total 44
drwxr-xr-x   2 rml install 4096 Nov 23 07:27 bin
drwxr-xr-x   2 rml install 4096 Nov 22 17:49 etc
drwxr-xr-x   4 rml install 4096 Nov 22 16:31 i686-pc-linux-gnu
drwxr-xr-x  24 rml install 4096 Nov 22 19:49 include
drwxr-xr-x   2 rml install 4096 Nov 23 06:57 info
drwxr-xr-x   7 rml install 4096 Nov 22 20:16 lib
drwxr-xr-x   5 rml install 4096 Nov 22 19:55 libexec
drwxr-xr-x   7 rml install 4096 Nov 22 19:15 man
drwxr-xr-x   2 rml install 4096 Nov 22 17:49 sbin
drwxr-xr-x  14 rml install 4096 Nov 23 07:27 share
drwxr-xr-x   2 rml install 4096 Nov 22 19:15 var

[EMAIL PROTECTED]: /mnt/rmlnew1/tools > alias d
alias d='du -s -c -h'

[EMAIL PROTECTED]: /mnt/rmlnew1/tools > d
212M    .
212M    total

Now, after stripping using the following commands (which strips
a bit more even than what the book strips) I'm only seeing about
75 MB stripped out which is almost half what the book says:

find /tools/bin /tools/sbin /tools/i686-pc-linux-gnu/bin /tools/libexec -type f 
\
    -exec /usr/bin/strip --strip-all {} \; >strip_binfiles.log 2>&1
cat strip_binfiles.log | grep -v "File format not recognized"

find /tools/lib -type f -exec /usr/bin/strip --strip-debug {} \; 
>strip_libfiles.log 2>&1
cat strip_libfiles.log | grep -v "File format not recognized"

[EMAIL PROTECTED]: /mnt/rmlnew1/tools > d
135M    .
135M    total

Now, after using the following commands to remove unneeded stuff (which
is even more than the book says to) I'm only seeing about 20 MB removed.

rm -v -rf /tools/{info,man,share/{doc,man}} >tools_cleanup.log 2>&1
rmdir -v /tools/var >>tools_cleanup.log 2>&1

[EMAIL PROTECTED]: /mnt/rmlnew1/tools > d
115M    .
115M    total

[EMAIL PROTECTED]: /mnt/rmlnew1/tools > ls -l
total 32
drwxr-xr-x   2 rml install 4096 Nov 23 08:04 bin
drwxr-xr-x   2 rml install 4096 Nov 22 17:49 etc
drwxr-xr-x   4 rml install 4096 Nov 22 16:31 i686-pc-linux-gnu
drwxr-xr-x  24 rml install 4096 Nov 22 19:49 include
drwxr-xr-x   7 rml install 4096 Nov 23 08:08 lib
drwxr-xr-x   5 rml install 4096 Nov 23 08:04 libexec
drwxr-xr-x   2 rml install 4096 Nov 23 08:04 sbin
drwxr-xr-x  12 rml install 4096 Nov 23 08:17 share

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
08:27:01 up 59 days, 17:51, 3 users, load average: 0.15, 0.30, 0.48
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to