Re: Location to specify C compiler option in C extension

From: Demitri Muna <postgresql(at)demitri(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Location to specify C compiler option in C extension
Date: 2018-02-23 21:23:10
Message-ID: 01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Munro 2018-02-23 23:19:29 Re: Query error: could not resize shared memory segment
Previous Message Andres Freund 2018-02-23 19:10:00 Re: PQConsumeinput stuck on recv