Re: Location to specify C compiler option in C extension - Mailing list pgsql-general

From Demitri Muna
Subject Re: Location to specify C compiler option in C extension
Date
Msg-id 01DB0EC9-B077-48BC-8059-B3B7EE9FD63D@demitri.com
Whole thread Raw
In response to Re: Location to specify C compiler option in C extension  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-general by date:

Previous
From: Andres Freund
Date:
Subject: Re: PQConsumeinput stuck on recv
Next
From: Thomas Munro
Date:
Subject: Re: Query error: could not resize shared memory segment