pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Terry Phelps <tgphelps50@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Compile error while building postgresql 10.3
Date: Mon, 19 Mar 2018 16:22:23 -0400
Message-ID: <6865.1521490943@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMUfR_vbi8emyu3X5h1hOpVoeXzWm+xRndZ2h37gXC5BVOsFkw@mail.gmail.com>
References: <CAMUfR_vJKnd6oCA28petJ5NFTVyt99xxAEz1PS1zKErhtMc-fw@mail.gmail.com>
	<13506.1521487746@sss.pgh.pa.us>
	<CAMUfR_t8h7ZUmMu2bHvkgwG1F6JLdnMjHkrjMnuA4jevKTWpQw@mail.gmail.com>
	<28853.1521489010@sss.pgh.pa.us>
	<20180319195451.vxymrucrnxwpbzw3@alap3.anarazel.de>
	<5850.1521489681@sss.pgh.pa.us>
	<CAMUfR_v_3=fUTe-bD1BFs_FhzDq5Ci_UZOcRULbT27JD1a0jWA@mail.gmail.com>
	<6487.1521490512@sss.pgh.pa.us>
	<CAMUfR_vbi8emyu3X5h1hOpVoeXzWm+xRndZ2h37gXC5BVOsFkw@mail.gmail.com>

Terry Phelps <tgphelps50@gmail.com> writes:
> I ran configure like this, because it got errors otherwise. OHHHH. I wonder
> if CFLAGS caused this.

> LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include  ./configure

That would've been fine, but configure then adds onto what you specified
as CFLAGS.

> And then I ran gmake like this:
> gmake  LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include

And here you overrode the additions.  Just do "gmake" without these
overrides.  If you look into src/Makefile.global you should see that
your initial specifications got into the selected flag variables.

			regards, tom lane




view thread (19+ messages)  latest in thread

Message-ID: <6865.1521490943@sss.pgh.pa.us>
Permalink:  ../6865.1521490943@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6865.1521490943@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tgphelps50@gmail.com, andres@anarazel.de, pgsql-hackers@lists.postgresql.org
  Subject: Re: Compile error while building postgresql 10.3
  In-Reply-To: <6865.1521490943@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox