Skip to content

Commit f1e8362

Browse files
committed
makefile: use proper linker flags for C++ compiles
Add CFLAGS_SL flags for C++ compiles, which adds needed -fPIC linker flag. Reported-by: Oleksii Kliukin Discussion: https://postgr.es/m/E4A49A6B-621B-4830-A374-970EBB7D1328@hintbits.com Backpatch-through: 10 only
1 parent 67427a1 commit f1e8362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Makefile.shlib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ endif
101101
# Try to keep the sections in some kind of order, folks...
102102

103103
override CFLAGS += $(CFLAGS_SL)
104+
override CXXFLAGS += $(CFLAGS_SL)
104105
ifdef SO_MAJOR_VERSION
105106
# libraries ought to use this to refer to versioned gettext domain names
106107
override CPPFLAGS += -DSO_MAJOR_VERSION=$(SO_MAJOR_VERSION)

0 commit comments

Comments
 (0)