Re: enable-debug considered pointless

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: enable-debug considered pointless
Date: 2001-02-20 15:47:04
Message-ID: Pine.LNX.4.30.0102201641160.938-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> I notice that if the platform's template doesn't set CFLAGS, then
> configure will give you -g in CFLAGS whether you ask for it or not
> (courtesy of AC_PROG_CC). The --enable-debug configure switch thus does
> not function as advertised. If we are going to say that --enable-debug
> isn't recommended for production, don't you think there should be a way
> to turn it off? Perhaps this means that all the template files should
> force a setting of CFLAGS;

This was sort of the idea, but I see some disappeared.

> or else that we should not use the stock version of AC_PROG_CC. Or
> maybe just set CFLAGS to empty right before AC_PROG_CC?

Probably best for now. Eventually, I'd like it to look more like the
AC_PROG_CXX code, all in one place. Right now the templates are a
safe-guard against trying to build on a platforms that's not supported at
all, but it should actually be possible to do just that, without shared
libraries maybe, and with the software-TAS that you implemented. But ISTM
that we've covered the recent wave of new operating systems, so this is
not a pressing issue to me.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-02-20 15:50:57 Re: beta5 ...
Previous Message Peter Eisentraut 2001-02-20 15:38:20 Re: GET DIAGNOSTICS (was Re: Open 7.1 items)