summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
diff options
context:
space:
mode:
authorAndres Freund2018-03-20 22:41:15 +0000
committerAndres Freund2018-03-20 22:48:48 +0000
commit6869b4f2584787d9e4cefaab8a4bae1ecbe63766 (patch)
tree10ac7cef67cfbc6f906d754b48b6b4f4a9a1e02c /src/Makefile.shlib
parenta364dfa4ac7337743050256c6eb17b5db5430173 (diff)
Add C++ support to configure.
This is an optional dependency. It'll be used for the upcoming LLVM based just in time compilation support, which needs to wrap a few LLVM C++ APIs so they're accessible from C.. For now test for C++ compilers unconditionally, without failing if not present, to ensure wide buildfarm coverage. If we're bothered by the additional test times (which are quite short) or verbosity, we can later make the tests conditional on --with-llvm. Author: Andres Freund Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de
Diffstat (limited to 'src/Makefile.shlib')
-rw-r--r--src/Makefile.shlib1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index 0ce6d2a145d..0839f37e0f5 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -100,6 +100,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)