large binary, why not strip ?
m.seaman at infracaninophile.co.uk
Sun Nov 16 01:11:15 PST 2008
Masoom Shaikh wrote:
> most of the programs installed from ports have large binary size on disk
> stripping em all reduces their size dramatically
> I cannot see the reason for not stripping them by default ?
> do I miss anything ?
Yes. Binaries installed from the ports system /are/ already stripped
by default. The official position is given here:
In practice it seems there are some exceptions -- this is what I found
in /usr/local/bin on my machine (and pretty much everything in
/usr/local/bin was installed from ports):
happy-idiot-talk:/usr/local/bin:% file * | grep ', not stripped' | cut -f 1 -d:
Arguably the fact that these programs aren't stripped is a bug that
should be reported to the port maintainers. As far as I know, there
is no circumstance where a binary has to be left unstripped in order
to operate correctly, other than when it is required to run it under
gdb(1). Hmmm.... that's something the ports build system should
probably check on and complain about.
On the other hand, compare that to the number of binaries that are
happy-idiot-talk:/usr/local/bin:% file * | grep ', stripped' | wc -l
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081116/36420368/signature.pgp
More information about the freebsd-questions