[pacman-dev] Stripping files on OSX

Allan McRae allan at archlinux.org
Sun Apr 26 08:05:04 EDT 2009


Hi all,

I am looking for people in the know about how files should be stripped 
on Mac OSX.

In FS#13592, it is suggested that we do some more fine grained tuning of 
our library stripping.  These should work for platforms using GNU strip 
(Linux/BSD/Cygwin):

Binaries: "strip --strip-all"
Shared Libraries: "strip --strip-unneeded"
Static Libraries: "strip --strip-debug"


Can we do something similar on OSX?  From [1], it looks like similar 
options are:

Binaries: "strip -u -r"
Shared Libraries: "strip -x"
Static Libraries: "strip -S

Can someone confirm if these options are any good?  I could be entirely 
wrong...

[1] 
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/strip.1.html

Allan





More information about the pacman-dev mailing list