Re: Add EXTRA_CFLAGS to configure

From: Nathan Wagner <nw+pg(at)hydaspes(dot)if(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add EXTRA_CFLAGS to configure
Date: 2015-10-28 13:53:31
Message-ID: 20151028135331.GA9144@granicus.if.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
nw

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-10-28 13:57:35 Re: quieting DEBUG3
Previous Message Robert Haas 2015-10-28 13:42:19 Re: Add EXTRA_CFLAGS to configure