]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS variables to PGXS
authorMichael Paquier <michael@paquier.xyz>
Sun, 3 Feb 2019 08:48:46 +0000 (17:48 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 3 Feb 2019 08:48:46 +0000 (17:48 +0900)
commitda14c9b1904870cf6a2e0add7af83576db7b2fe5
tree055aed35a2c900a5f5d8b20bfc4583bedd5bb2cd
parent1ca33fc7b5111748222d1ac20b8b8ebb49bb75e6
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