build/c++: configuring CXXFLAGS appropriately based on CFLAGS
@@ -71,7 +71,7 @@ COVERAGE_FLAGS = @COVERAGE_OPTION@ # dynamic library linker needs separate flag
CONFIG_CFLAGS = @CFLAGS@ @DEBUG_MSG_OPTION@ @ARCH_OPTION@ ${COVERAGE_FLAGS}
CPPFLAGS = @CPPFLAGS@ $(INCLUDE_CFLAGS)
CFLAGS = $(CONFIG_CFLAGS) -Wall -fPIC -Wno-deprecated -Wno-deprecated-declarations
-CXXFLAGS = $(CONFIG_CFLAGS) -Wall -fPIC -Wno-deprecated -Wno-return-type-c-linkage
+CXXFLAGS = $(CFLAGS) -std=c++14 -Wno-return-type-c-linkage
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
PATHSEP = /
