public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: [email protected]
Subject: pgsql: Use CXXFLAGS instead of CFLAGS for linking C++ code
Date: Thu, 26 Feb 2026 17:07:15 +0000
Message-ID: <[email protected]> (raw)

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.

Back-patch of v18 commit 365b5a345 into older supported branches.
At the time we were only aware of trouble in v18, but as shown
by buildfarm member siren, older branches can hit the problem too.

Reported-by: Tom Lane <[email protected]>
Author: Peter Eisentraut <[email protected]>
Discussion: https://www.postgresql.org/message-id/[email protected]
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 14-17

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/231570d33581e34cdfbacfa0f89a3d6fff790ef3

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



view thread (4+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Use CXXFLAGS instead of CFLAGS for linking C++ code
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox