postgres.git / summary / log / commit / refs

commit    f1e8362aefc866a6f75b6b41edccd03d51235d17
Author:   Bruce Momjian <bruce@momjian.us>
Date:     Wed Apr 01 02:26:11 2020 +0000
First released in: 10.13

    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


src/Makefile.shlib | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.shlib b/src/Makefile.shlib index eb45daedc88..342496eecd0 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -101,6 +101,7 @@ endif # Try to keep the sections in some kind of order, folks... override CFLAGS += $(CFLAGS_SL) +override CXXFLAGS += $(CFLAGS_SL) ifdef SO_MAJOR_VERSION # libraries ought to use this to refer to versioned gettext domain names override CPPFLAGS += -DSO_MAJOR_VERSION=$(SO_MAJOR_VERSION) [parent: 67427a159b0b]