Re: What generates pg_config.h?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Travis Allison <travisallison(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, floriparob(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org, Christoph Berg <myon(at)debian(dot)org>
Subject: Re: What generates pg_config.h?
Date: 2018-01-05 23:29:51
Message-ID: 22433.1515194991@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Travis Allison <travisallison(at)gmail(dot)com> writes:
> Tom, where's the -l switch exactly? What command is it attached to? (I'm
> not sure what to look for.)

Look into the extension's Makefile for something roughly along the lines
of

CPPFLAGS = -I/usr/include/postgresql

Very likely there's some amount of macro-ization involved, so it might
look more like

INCLUDEDIR = /usr/include/postgresql
...
CPPFLAGS = -I$(INCLUDEDIR)

Furthermore, given our current theory, there's going to be more than
one -I switch on that line, and you want to get rid of just one.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-01-05 23:40:06 Re: What generates pg_config.h?
Previous Message Travis Allison 2018-01-05 23:03:55 Re: What generates pg_config.h?