Go to the first, previous, next, last section, table of contents.


The strip program

Stripping a library is essentially the same problem as stripping an object file. Only local and debugging symbols must be removed, or else linking against a stripped library will fail.

With GNU strip, the `--discard-all' (or equivalent `-x') flag will do the appropriate stripping, for both shared and static libraries.

Here is a list of some other operating systems, and what their bundled strip programs will do:

netbsd*
The `-x' flag works for shared libraries, but fails with "Inappropriate file type or format" when used on static libraries.
hpux10*
HP-UX strip requires the `-r' and `-x' flags in order to strip libraries.


Go to the first, previous, next, last section, table of contents.