Re: [BUGS] solaris non gcc compiler debug options

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] solaris non gcc compiler debug options
Date: 2004-11-27 05:03:01
Message-ID: 200411270503.iAR531115641@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

Kris Jurka wrote:
>
> Compiling on solaris with a non gcc compiler does not correctly enable
> debugging when --enable-debug is specified. src/template/solaris is
> specifying CFLAGS="-O -v" and -O overrides the -g that --enable-debug
> adds.

Good point. Our template files should be _adding_ to CFLAGS and
CPPFLAGS, not overriding them. Later optimization flags on the
command line override earlier ones, so this patch should fix the
problem, and it exists in a few platforms. Applied.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 4.9 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Neil Conway 2004-11-27 06:17:40 Re: BUG #1329: Bug in IF-ELSEIF-ELSE construct
Previous Message Bruce Momjian 2004-11-27 04:49:13 Re: Sequence creation bug: 8.0.0beta4 win32

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-11-27 06:02:44 Re: FAQ update
Previous Message Bruce Momjian 2004-11-27 04:23:19 Re: psql: customizable readline history filename