Re: Still a few flaws in configure's default CFLAGS

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Greg Stark <gsstark(at)mit(dot)edu>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Still a few flaws in configure's default CFLAGS
Date: 2003-10-24 12:47:17
Message-ID: Pine.LNX.4.44.0310241446300.17076-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> What Peter was advocating in that thread was that we enable -g by
> default *when building with gcc*. I have no problem with that, since
> there is (allegedly) no performance penalty for -g with gcc. However,
> the actual present behavior of our configure script is to default to -g
> for every compiler, and I think that that is a big mistake. On most
> non-gcc compilers, -g disables optimizations, which is way too high a
> price to pay for production use.

You do realize that as of now, -g is the default for gcc? Was that the
intent?

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-10-24 13:06:13 Re: 7.4 compatibility question
Previous Message John DeSoi 2003-10-24 12:43:10 shared memory on OS X - 7.4beta4