Re: Still a few flaws in configure's default CFLAGS selection - Mailing list pgsql-hackers

From Kevin Brown
Subject Re: Still a few flaws in configure's default CFLAGS selection
Date
Msg-id 20031027082346.GI6073@filer
Whole thread Raw
In response to Re: Still a few flaws in configure's default CFLAGS selection  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:

> Well, we don't want to use debug for non-gcc (no optimization) so do we
> do -g for gcc, and then --enable-debug does nothing.  Seems people can
> decide for themselves.

But doesn't --enable-debug turn off optimization?

It's really a question of what the default behavior should be for each
option.  Clearly for non-gcc compilers, the default should be -O only
since they probably can't simultaneously handle -g.  But gcc builds are
an exception, one which I think is worth considering.  Hence my opinion
that for gcc builds, the default should be -g and -O.


-- 
Kevin Brown                          kevin@sysexperts.com


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: ORDER BY regtype
Next
From: "Dave Page"
Date:
Subject: Re: Call for port reports (Win32 Client)