Red Hat Bugzilla – Bug 79574
statically linked binary is stripped when building rpm
Last modified: 2008-05-01 11:38:04 EDT
I'm trying to make a rpm on RedHat 8.0 with race (
http://race.sourceforge.net/ ). I've downloaded the compiled version.
Everything goes fine, but the final rpm has a binary executable of 92
bytes instead of the original 800k. The original race executable is
statically-linked ( ldd says it's not dynamic ) and it seems that on
brp-strip-comment-note step it gets 'stripped'.
If I put another binary, dynamically linked, it works fine.
I asked on redhat mailing list how could I convince rpm to leave the executable
as it is, got no answer in a month, so I'm filling this.
You need to disable the stripping policies when building
%define __spec_install_post :
will disable all post %install policies.