Re: Compile error while building postgresql 10.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Terry Phelps <tgphelps50(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Compile error while building postgresql 10.3
Date: 2018-03-19 20:22:23
Message-ID: 6865.1521490943@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

Terry Phelps <tgphelps50(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Terry Phelps 2018-03-19 20:28:31 Re: Compile error while building postgresql 10.3
Previous Message Terry Phelps 2018-03-19 20:19:13 Re: Compile error while building postgresql 10.3

Browse pgsql-hackers by date

  From Date Subject
Next Message Keiko Oda 2018-03-19 20:27:21 Trigger file behavior with the standby
Previous Message Terry Phelps 2018-03-19 20:19:13 Re: Compile error while building postgresql 10.3