Add EXTRA_CFLAGS to configure

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Add EXTRA_CFLAGS to configure
Date: 2015-10-28 10:55:45
Message-ID: 20151028105545.GD2632@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

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?

Greetings,

Andres Freund

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-10-28 11:10:38 Re: ATT_FOREIGN_TABLE and ATWrongRelkindError()
Previous Message Marko Tiikkaja 2015-10-28 09:03:18 psql: add \pset true/false