How to prevent a binary from being stripped by rpmbuild?

Jan Kratochvil jan.kratochvil at redhat.com
Sat Dec 10 12:35:40 UTC 2011


On Sat, 10 Dec 2011 13:20:37 +0100, Josh Boyer wrote:
> On Sat, Dec 10, 2011 at 4:52 AM, Jan Kratochvil <jan.kratochvil at redhat.com> wrote:
> > rpmbuild uses eu-strip, not strip.  Therefore elfutils, not binutils.
> > See: /usr/lib/rpm/find-debuginfo.sh
> 
> That's if debuginfo packages are enabled.  If they aren't it uses
> plain strip afaik.

/usr/lib/rpm/redhat/macros
    %{!?__debug_package:\
    /usr/lib/rpm/redhat/brp-strip %{__strip} \

/usr/lib/rpm/brp-strip:
STRIP=${1:-strip}

/usr/lib/rpm/macros:
%__strip                /usr/bin/strip

I see, that is a bug.


Jan


More information about the devel mailing list