Re: [PATCH] Pass COPT and PROFILE to CXXFLAGS as well
Christoph Berg <christoph.berg@credativ.de>
From: Christoph Berg <christoph.berg@credativ.de>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>, Alvaro Herrera <alvherre@2ndquadrant.com>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2019-01-30T13:41:01Z
Lists: pgsql-hackers
Re: Andres Freund 2019-01-30 <20190130015127.hciz36lpmu7prrx2@alap3.anarazel.de> > I'm confused - that doesn't allow to inject flags to all in-core built > files? So how does that fix your problem fully? Say > e.g. llvmjit_inline.cpp won't get the flag, and thus not be > reproducible? The original itch being scratched here is extensions written in C++, which need -ffile-prefix-map (or -fdebug-prefix-map) injected into CXXFLAGS on top of the flags encoded in pgxs.mk. I originally picked COPT because that works for injecting flags into pgxs.mk as well, but PG_*FLAGS is better. For the server build itself, it shouldn't be necessary to inject flags because they are passed directly to ./configure. Admittedly I haven't looked at reproducibility of PG11 yet as clang is still missing the prefix-map feature, but https://reviews.llvm.org/D49466 is making good progress. Do we still want some CXXOPT flag for the server build? I can write a patch, but someone else would need to do the bikeshedding how to name it, and which of the existing knobs would set CXXFLAGS along. I don't think I need that feature. Christoph -- Senior Berater, Tel.: +49 2166 9901 187 credativ GmbH, HRB Mönchengladbach 12080, USt-ID-Nummer: DE204566209 Trompeterallee 108, 41189 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer Unser Umgang mit personenbezogenen Daten unterliegt folgenden Bestimmungen: https://www.credativ.de/datenschutz
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