]> granicus.if.org Git - postgresql/commit
Add PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS variables to PGXS
authorMichael Paquier <michael@paquier.xyz>
Sun, 3 Feb 2019 08:48:09 +0000 (17:48 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 3 Feb 2019 08:48:09 +0000 (17:48 +0900)
commitac3a9afdbefd76de51fa8f864288f2d2372ca4e9
treea4dc024cc9ba47aff9766f8d71c4b6a9a7437004
parent0b8bdb3c3ec092f18813d5b6fc738d7ec450289b
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
src/makefiles/pgxs.mk