pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS variables to PGXS
Date: Sun, 03 Feb 2019 08:50:05 +0000
Message-ID: <E1gqDTZ-0000WY-8F@gemulon.postgresql.org> (raw)

Add PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS variables to PGXS

Add PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS variables to pgxs.mk which
will be appended or prepended to the corresponding make variables.
Notably, there was previously no way to pass custom CXXFLAGS to third
party extension module builds, COPT and PROFILE supporting only CFLAGS
and LDFLAGS.

Backpatch all the way down to ease integration with existing
extensions.

Author: Christoph Berg
Reviewed-by: Andres Freund, Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/20181113104005.GA32154@msg.credativ.de
Backpatch-through: 9.4

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5e63df82708ba6e350a1beb568c059e109f440a0

Modified Files
--------------
doc/src/sgml/extend.sgml | 29 ++++++++++++++++++++++++++++-
src/makefiles/pgxs.mk    | 14 +++++++++++++-
2 files changed, 41 insertions(+), 2 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1gqDTZ-0000WY-8F@gemulon.postgresql.org>
Permalink:  ../E1gqDTZ-0000WY-8F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gqDTZ-0000WY-8F@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Add PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS variables to PGXS
  In-Reply-To: <E1gqDTZ-0000WY-8F@gemulon.postgresql.org>
  References: <E1gqDTZ-0000WY-8F@gemulon.postgresql.org>

* 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