Quote |
Most programs and libraries are, by default, compiled with debugging symbols included. <snip> As most people will probably never use a debugger on their system software, a lot of disk space can be regained by removing these symbols. To remove debugging symbols from a binary (which must be an a.out or ELF binary), run strip --strip-debug filename |
Code Sample |
cd /path/to/source/dir find {,usr/,usr/local/}{bin,sbin,lib} -type f -exec strip --strip-debug '{}' ';' |
Quote (mikshaw @ June 24 2005,09:10) |
Strip is also a very useful tool in creating myDSL packages. For example, the Fluxbox 0.9.x binary is 6mb unstripped, and only 1mb stripped |