John Frankish wrote:
I was looking at the secion in Chapter 6 on stripping.  What we have now is:

/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
      -exec /tools/bin/strip --strip-debug '{}' ';'

But upon examination, I think we also need to strip /usr/libexec.  Doing
that freed up about 300M on my build.

You'd also get more by stripping by type:

--strip-all -> bin,sbin,libexec
--strip-unneeded -> lib/*.so*
--strip-debug -> lib/*.a

Looking for more feedback on this.  Right now we have:

/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
    -exec /tools/bin/strip --strip-debug '{}' ';'

To maximize the stripping we would need:

/tools/bin/find /usr/lib -type f -name \*.a \
   -exec /tools/bin/strip --strip-debug {} ';'

/tools/bin/find /lib /usr/lib -type f -name \*.so* \
   -exec /tools/bin/strip --strip-unneeded {} ';'

/tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
   -exec /tools/bin/strip --strip-all {} ';'

Should we do this? It would seem to minimize the disk space and provide an example of some different strip options.

With these commands, a vanilla LFS install is then about 534M, not counting /tools (1,2G) /sources (426M), and /jhalfs (52M).

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to