[lfs-dev] Stripping

John Frankish john.frankish at outlook.com
Mon Apr 18 22:45:20 PDT 2016


> 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




More information about the lfs-dev mailing list