Use CXXFLAGS instead of CFLAGS for linking C++ code

Peter Eisentraut <peter@eisentraut.org>

Commit: 365b5a345b2680615527b23ee6befa09a2f784f2
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-08-04T09:17:46Z
Releases: 18.0
Use CXXFLAGS instead of CFLAGS for linking C++ code

Otherwise, this would break if using C and C++ compilers from
different families and they understand different options.  It already
used the right flags for compiling, this is only for linking.  Also,
the meson setup already did this correctly.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/228700.1722717983@sss.pgh.pa.us

Files

PathChange+/−
src/backend/jit/llvm/Makefile modified +1 −1

Discussion