How to prevent a binary from being stripped by rpmbuild?

David Howells dhowells at redhat.com
Sat Dec 10 14:15:24 UTC 2011


Josh Boyer <jwboyer at gmail.com> wrote:

> You might also want to redefine %{__strip} to the appropriate
> cross-strip utility, or /bin/true.  Something like:
> 
> %define debug_package %{nil}
> %define __strip /bin/true

Ah, so I can make a shell script to apply the appropriate strip binary...

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

Interesting:

+ eu-strip -g /data/cross-gcc/cross-gcc/rpmbuild/BUILDROOT/cross-gcc-4.6.2-1.fc16.1.x86_64/usr/lib64/gcc/powerpc64-linux-gnu/4.6.2/libgcov.a
/data/cross-gcc/cross-gcc/rpmbuild/BUILDROOT/cross-gcc-4.6.2-1.fc16.1.x86_64/strip: line 9: 28521 Segmentation fault      eu-strip $*

David


More information about the devel mailing list