Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 365b5a3

Browse files
committed
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
1 parent 028b4b2 commit 365b5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/jit/llvm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SHLIB_LINK += $(LLVM_LIBS)
3737
# Because this module includes C++ files, we need to use a C++
3838
# compiler for linking. Makefile.shlib uses $(COMPILER) to build
3939
# loadable modules.
40-
override COMPILER = $(CXX) $(CFLAGS)
40+
override COMPILER = $(CXX) $(CXXFLAGS)
4141

4242
OBJS = \
4343
$(WIN32RES)

0 commit comments

Comments
 (0)