[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Unix strip command



On Tue, Jul 10, 2001 at 02:36:35PM +0200, Cameron Scott ICM N MC MI SI 6 wrote:
> Greetings!
> 
> 
> I have a small problem that RPM is stripping too much information off our
> object files.
> Is there a way to prevent this "strip" command from happening?
> 

First, search for explicit strips and LDFLAGS=-s and disable it.
Second, define "__os_install_post" macro as "/usr/lib/rpm/brp-compress" in
the top of your spec file, like:

%define __os_install_post /usr/lib/rpm/brp-compress

and just recompile your src.rpm.

If you want to build a package with debug information just insert this line
into your ~.popt file:

--- CUT HERE ---

rpm alias --debuginfo --define 'optflags -ggdb' \
--define '__os_install_post /usr/lib/rpm/brp-compress'

--- CUT HERE ---

and rpm -ba --debuginfo fubar.spec will builds a package with debug information
for gdb.
-- 
ruda





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []