model-writtenrun 9729 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Christoph Berg proposed passing COPT and PROFILE into CXXFLAGS because C++ extensions such as postgresql-hll were missing build-path remapping flags needed for reproducible builds #1.
- Andres Freund and Tom Lane preferred a separate CXXOPT variable for language-specific flags, and Christoph supplied an inline revision implementing that approach while explaining why extension builds needed additional flags beyond those inherited from PostgreSQL #2 #3 #5.
- Peter Eisentraut suggested extending PGXS's existing PG_CPPFLAGS convention, Michael Paquier proposed including linker flags, and Christoph added PG_CFLAGS, PG_CXXFLAGS, and PG_LDFLAGS alongside the core-build changes #6 #7 #8.
- Christoph then restored shared COPT propagation and added installation documentation, but Andres objected that flags might not be valid for both languages, while Michael identified missing documentation for the new PGXS variables #9 #11 #10.
- Michael advocated separating extension-build controls from COPT and PROFILE; Andres considered handling the core-build portion separately and initially opposed backpatching the PGXS additions, while Alvaro Herrera questioned the backpatch risk and noted missing extension documentation #13 #15 #16 #17.
- Christoph submitted a documented PGXS-only patch and requested support in PostgreSQL 11 for Debian buster, prompting Michael to support backpatching the non-invasive change #20 #21.
- After Andres questioned whether PGXS-only controls would fix core C++ builds, Christoph clarified that extensions were the actual requirement and server flags could be supplied through configure; Michael consequently deferred CXXOPT unless a concrete need emerged #22 #23 #24.
- Tom identified that user compiler flags must come last so options such as optimization levels take precedence, while include and library search flags should come first; Michael incorporated that correction and explicit ordering documentation into the final patch, which Tom accepted #25 #26 #27 #28.
- Michael committed the final attachment unchanged as ac3a9afdbe, credited Christoph as author, and backpatched through PostgreSQL 9.4; his push confirmation and Christoph's acknowledgment closed the thread with the PGXS work landed and the core-build changes deferred #29 #30.