Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-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                        |
  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

In response to


pgsql-bugs by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group