Getting rpmbuild to strip all files.

devzero2000 pinto.elia at
Wed Mar 24 10:36:37 UTC 2010

On Tue, Mar 23, 2010 at 9:33 PM, Ben Greear <greearb at> wrote:

> Hello!
> I have a package that has lots of .so files in it.  Is there
> a way to compile the source with debugging but have rpmbuild strip every
> file before packaging into the .rpm?
> This is the default buildpolicy in general (this is on RHEL 5 for example)

rpm -E '%__os_install_post'

    /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
    /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
    /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Rpm-list mailing list