Re: Debugging symbols by default

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Debugging symbols by default
Date: 2002-04-05 22:56:52
Message-ID: 1018047413.27915.1.camel@lerlaptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2002-04-05 22:58:00 Re: What's the CURRENT schema ?
Previous Message Peter Eisentraut 2002-04-05 22:55:30 Debugging symbols by default