Thread: pgsql: Use CXXFLAGS instead of CFLAGS for linking C++ code

pgsql: Use CXXFLAGS instead of CFLAGS for linking C++ code

From
Peter Eisentraut
Date:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/365b5a345b2680615527b23ee6befa09a2f784f2

Modified Files
--------------
src/backend/jit/llvm/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)