mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
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
This commit is contained in:
@@ -101,6 +101,7 @@ endif
|
|||||||
# Try to keep the sections in some kind of order, folks...
|
# Try to keep the sections in some kind of order, folks...
|
||||||
|
|
||||||
override CFLAGS += $(CFLAGS_SL)
|
override CFLAGS += $(CFLAGS_SL)
|
||||||
|
override CXXFLAGS += $(CFLAGS_SL)
|
||||||
ifdef SO_MAJOR_VERSION
|
ifdef SO_MAJOR_VERSION
|
||||||
# libraries ought to use this to refer to versioned gettext domain names
|
# libraries ought to use this to refer to versioned gettext domain names
|
||||||
override CPPFLAGS += -DSO_MAJOR_VERSION=$(SO_MAJOR_VERSION)
|
override CPPFLAGS += -DSO_MAJOR_VERSION=$(SO_MAJOR_VERSION)
|
||||||
|
Reference in New Issue
Block a user