Use CXXFLAGS instead of CFLAGS for linking C++ code
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 4 Aug 2024 09:17:46 +0000 (11:17 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 4 Aug 2024 09:17:46 +0000 (11:17 +0200)
commit365b5a345b2680615527b23ee6befa09a2f784f2
treee07698fa376e0a4acc5332ea39bf167dd3173d21
parent028b4b21df26fee67b3ce75c6f14fcfd3c7cf2ee
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: http://www.postgresql.org/message-id/228700.1722717983@sss.pgh.pa.us
src/backend/jit/llvm/Makefile