summaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm
diff options
context:
space:
mode:
authorPeter Eisentraut2024-08-04 09:17:46 +0000
committerPeter Eisentraut2024-08-04 09:17:46 +0000
commit365b5a345b2680615527b23ee6befa09a2f784f2 (patch)
treee07698fa376e0a4acc5332ea39bf167dd3173d21 /src/backend/jit/llvm
parent028b4b21df26fee67b3ce75c6f14fcfd3c7cf2ee (diff)
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 <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'src/backend/jit/llvm')
-rw-r--r--src/backend/jit/llvm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/jit/llvm/Makefile b/src/backend/jit/llvm/Makefile
index 0036c4f5520..bfe5c207a2b 100644
--- a/src/backend/jit/llvm/Makefile
+++ b/src/backend/jit/llvm/Makefile
@@ -37,7 +37,7 @@ SHLIB_LINK += $(LLVM_LIBS)
# Because this module includes C++ files, we need to use a C++
# compiler for linking. Makefile.shlib uses $(COMPILER) to build
# loadable modules.
-override COMPILER = $(CXX) $(CFLAGS)
+override COMPILER = $(CXX) $(CXXFLAGS)
OBJS = \
$(WIN32RES)