pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Demitri Muna <postgresql@demitri.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Location to specify C compiler option in C extension
Date: Fri, 23 Feb 2018 16:23:10 -0500
Message-ID: <01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com> (raw)
In-Reply-To: <15098.1519412984@sss.pgh.pa.us>
References: <5186A762-290F-42CC-851E-E9D873CE51B0@demitri.com>
	<15098.1519412984@sss.pgh.pa.us>

Hi Tom,

> PG_CPPFLAGS ought to work.  One point is that you need to set that before
> including pgxs.mk; maybe it's an ordering problem?

On closer inspection, it was working, but the pg Makefile was specifically including “-Wdeclaration-after-statement” which I think was overriding the ‘-std=c99’ part. The line below fixed the problem.

PG_CPPFLAGS += -std=c99 -Wno-declaration-after-statement

Thanks, sorry for the noise.

Demitri

view thread (3+ messages)

Message-ID: <01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com>
Permalink:  ../01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com/
Also on:    postgresql.org/message-id/01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: postgresql@demitri.com
  Subject: Re: Location to specify C compiler option in C extension
  In-Reply-To: <01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com>
  References: <5186A762-290F-42CC-851E-E9D873CE51B0@demitri.com> <15098.1519412984@sss.pgh.pa.us> <01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com>

* 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