Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXbR7-0007Q1-Vb for pgsql-general@arkaria.postgresql.org; Fri, 05 Jan 2018 23:30:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXbR7-0003Lj-Ag for pgsql-general@arkaria.postgresql.org; Fri, 05 Jan 2018 23:30:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eXbR7-0003LZ-3Y for pgsql-general@lists.postgresql.org; Fri, 05 Jan 2018 23:30:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eXbR0-0006gh-FW for pgsql-general@postgresql.org; Fri, 05 Jan 2018 23:30:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w05NTplI022434; Fri, 5 Jan 2018 18:29:51 -0500 From: Tom Lane To: Travis Allison cc: Alvaro Herrera , Adrian Klaver , floriparob@gmail.com, pgsql-general@postgresql.org, Christoph Berg Subject: Re: What generates pg_config.h? In-reply-to: References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql> <20599.1515192990@sss.pgh.pa.us> Comments: In-reply-to Travis Allison message dated "Fri, 05 Jan 2018 15:03:55 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22432.1515194991.1@sss.pgh.pa.us> Date: Fri, 05 Jan 2018 18:29:51 -0500 Message-ID: <22433.1515194991@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Travis Allison 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