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

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use CXXFLAGS instead of CFLAGS for linking C++ code
Date: 2024-08-04 09:24:30
Message-ID: E1saXTa-002cIi-En@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-08-04 10:44:11 pgsql: Introduce pluggable APIs for Cumulative Statistics
Previous Message Michael Paquier 2024-08-03 18:07:50 pgsql: Fix incorrect format placeholders in pgstat.c