From 12ff406f35b6da535f2011917b38c57e7f6a9540 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Sun, 3 Feb 2019 17:48:59 +0900 Subject: 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 --- doc/src/sgml/extend.sgml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index 8ee3fa0766b..feb7a92c17f 100644 --- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -1146,7 +1146,34 @@ include $(PGXS) PG_CPPFLAGS - will be added to CPPFLAGS + will be prepended to CPPFLAGS + + + + + + PG_CFLAGS + + + will be appended to CFLAGS + + + + + + PG_CXXFLAGS + + + will be appended to CXXFLAGS + + + + + + PG_LDFLAGS + + + will be prepended to LDFLAGS -- cgit v1.2.3