Stripping and stopping stripping of binaries in RPM Build.

From FedoraProject page :

Normally, if there are binary executables, then debugging symbols are 
stripped from the  normal binary packages and placed into a name-debug
subpackage. If this shouldn't  happen, you can disable the stripping 
and creation of this subpackage by putting this at the top of your 
SPEC:

%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}

If you want to stop stripping any one single binary alone, then you can add this line in the spec file after make..

strip --strip-unneeded binary_name
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s