Jeremy Huntwork wrote these words on 01/30/06 19:25 CST:

> Where would the right place be? Since, as Dan said, we have a whole
> Stripping section later in the book, this would kinda be pointless
> unless we drop that section.

We are talking about Chapter 5 right? I looked and the -s flags are
only in Chapter 5 so I'm thinking so.

Anyway, the Chapter 5 page on stripping is somewhat lame anyway. It
only gets *some* of the files. Here are the commands in Chapter 5.

strip --strip-debug /tools/lib/*
strip --strip-unneeded /tools/{,s}bin/*
rm -rf /tools/{info,man}

Here are the commands I have in my build script (you'll need to
strip out all the logfile parsing and such to get just the commands,
but you'll see much more is stripped and removed):

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"

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

-- 
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]
19:33:01 up 128 days, 4:57, 3 users, load average: 0.26, 0.26, 0.43
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to