Re: Add EXTRA_CFLAGS to configure
От | Bruce Momjian |
---|---|
Тема | Re: Add EXTRA_CFLAGS to configure |
Дата | |
Msg-id | 20151201012059.GD19371@momjian.us обсуждение исходный текст |
Ответ на | Re: Add EXTRA_CFLAGS to configure (Nathan Wagner <nw+pg@hydaspes.if.org>) |
Список | 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@anarazel.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@momjian.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 +
В списке pgsql-hackers по дате отправления: