Re: Debugging symbols by default - Mailing list pgsql-hackers

From Larry Rosenman
Subject Re: Debugging symbols by default
Date
Msg-id 1018047413.27915.1.camel@lerlaptop
Whole thread Raw
In response to Debugging symbols by default  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Debugging symbols by default
List pgsql-hackers
On Fri, 2002-04-05 at 16:55, Peter Eisentraut wrote:
> We had discussed a while ago that it might be a good idea to compile with
> debugging symbols by default, at least when using GCC.  Personally, I
> think that that would be a good idea, for users and developers alike.
> 
> If we go with that, I'd like to implement a new target 'install-strip'
> that strips the binaries while they are installed, as a compensation if
> you will.  (It strips the libraries in intelligent ways, too.)
> 
> This could be a win-win situation.  Developers don't need to type
> --enable-debug all the time, users don't need to recompile when we ask
> them to trace a bug, and if you're pressed for disk space then
> 'install-strip' will save you even more space than simply omitting
> debugging symbols.  (Or you can keep the unstripped binaries around
> elsewhere for debugging -- the possibilities are endless ;-) )
> 
> Comments?
With the Caldera (nee SCO) compiler -O and -g are mutually exclusive. 
If you include both, you'll get -g. 

I'd recommend against this for production use with the Caldera cc and CC
compilers. 

LER
-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Debugging symbols by default
Next
From: "Hiroshi Inoue"
Date:
Subject: Re: What's the CURRENT schema ?