Re: Add EXTRA_CFLAGS to configure - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Add EXTRA_CFLAGS to configure
Date
Msg-id CA+TgmoYKHY7G4TQf1meY+whtQea9d5t7CiwHsF2D-0P3bKgLug@mail.gmail.com
Whole thread Raw
In response to Add EXTRA_CFLAGS to configure  (Andres Freund <andres@anarazel.de>)
Responses Re: Add EXTRA_CFLAGS to configure  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Wed, Oct 28, 2015 at 11:55 AM, Andres Freund <andres@anarazel.de> wrote:
> I rather regularly want to pass extra flags to configure without
> overwriting CFLAGS. There's two basic reasons:
>
> 1) ./configure CFLAGS=... essentially breaks --enable-debug and related
>    options, overwrites -O2 as the default and such. That's imo pretty
>    confusing.
> 2) I like to be able to pass -Werror or something to configure without
>    breaking a bunch of configure tests that won't work with Werror.
>
> A good way to do that seems to be to add a separate variable for that
> purpose? Unless someobdy has a better idea?

I use COPT for this purpose.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: ATT_FOREIGN_TABLE and ATWrongRelkindError()
Next
From: Robert Haas
Date:
Subject: Re: ATT_FOREIGN_TABLE and ATWrongRelkindError()