From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Add EXTRA_CFLAGS to configure |
Date: | 2015-12-01 01:20:59 |
Message-ID: | 20151201012059.GD19371@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Oct 28, 2015 at 01:53:31PM +0000, Nathan Wagner wrote:
> On Wed, Oct 28, 2015 at 02:42:19PM +0100, Robert Haas wrote:
> > On Wed, Oct 28, 2015 at 2:17 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> > >> I use COPT for this purpose.
> > >
> > > Unless I miss something you can't just pass that to configure though,
> > > right? I.e. it has to be passed to each make invocation?
> >
> > What I do is:
> >
> > echo COPT=-Wall -Werror > src/Makefile.custom
>
> Make will pick up variables from the environment. So unless the
> makefile goes out of its way to circumvent it, you can just do
>
> COPT=-Werror
> export COPT
>
> and then run your usual configure/compile cycle. There's no
> specific need to modify the makefiles or pass extra arguments
> into make.
FYI, I use CUSTOM_COPT in src/Makefile.custom.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Roman grave inscription +
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2015-12-01 01:21:40 | Re: Using quicksort for every external sort run |
Previous Message | Pavel Stehule | 2015-12-01 01:17:51 | Re: proposal: PL/Pythonu - function ereport |