Re: [PATCH] Pass COPT and PROFILE to CXXFLAGS as well
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>, Christoph Berg <christoph.berg@credativ.de>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2019-01-22T20:10:58Z
Lists: pgsql-hackers
On 2019-Jan-22, Andres Freund wrote: > I think its plain wrong to add COPT to CXXFLAGS. Re PROFILE I'm on the > fence. I personally think the pgxs stuff is a bit separate, and I'm > doubtful we ought to backpatch that. I'm basically planning to apply > https://www.postgresql.org/message-id/20190107091734.GA1582%40msg.credativ.de > to 11-, minus the PGXS stuff. If we want that, we ought to apply it to > master only IMO. I don't understand why you don't want to backpatch the PGXS bits. Is there something working today that would be broken by it? I think you're worried about places that invoke makefiles with PG_CXXFLAGS set and expecting the value not to be propagated. Is that a scenario we need to worry about? The patch neglects to update extend.sgml with the new pgxs variable, though. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Add PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS variables to PGXS
- 42b204db298c 9.4.21 landed
- 12ff406f35b6 9.5.16 landed
- 5e63df82708b 9.6.12 landed
- da14c9b19048 10.7 landed
- 946430da6a0b 11.2 landed
- ac3a9afdbefd 12.0 landed