From 8a438acf47ff47926af64d0aa0f60f892cf6ab0e Mon Sep 17 00:00:00 2001 From: Alexander Schwinn <al.schwinn@gsi.de> Date: Wed, 20 Jan 2021 10:14:42 +0100 Subject: [PATCH] enable C++ 11 support --- silecs-cli-client/Makefile | 3 +++ silecs-communication-cpp/Makefile | 3 +++ silecs-diagnostic-cpp/Makefile | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/silecs-cli-client/Makefile b/silecs-cli-client/Makefile index 621bb4b..5edb7ed 100644 --- a/silecs-cli-client/Makefile +++ b/silecs-cli-client/Makefile @@ -23,6 +23,9 @@ SKIP_MANIFEST = TRUE #global COMMON_MAKE_PATH ?= /opt/cern/buildsystem/generic/2.9.0 +#Enable C++11 Support +COMPILER_FLAGS += -std=c++11 + # product configuration BIN_NAME = $(PROJECT)-$(PRODUCT) DBG = false diff --git a/silecs-communication-cpp/Makefile b/silecs-communication-cpp/Makefile index d3f5959..421366c 100644 --- a/silecs-communication-cpp/Makefile +++ b/silecs-communication-cpp/Makefile @@ -35,6 +35,9 @@ MINOR ?= 0 PATCH ?= 0 COMPILER_FLAGS = -DMAJOR=$(MAJOR) -DMINOR=$(MINOR) -DPATCH=$(PATCH) +#Enable C++11 Support +COMPILER_FLAGS += -std=c++11 + # Comment IN/Out to enable NI-Support #COMPILER_FLAGS += -DNI_SUPPORT_ENABLED=TRUE diff --git a/silecs-diagnostic-cpp/Makefile b/silecs-diagnostic-cpp/Makefile index 396512d..8af309c 100644 --- a/silecs-diagnostic-cpp/Makefile +++ b/silecs-diagnostic-cpp/Makefile @@ -30,6 +30,10 @@ DBG = false #DEFINES = -DWITH_RBAC -D_REENTRANT -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED DEFINES = -D_REENTRANT -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED COMPILER_FLAGS = -O2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -mtune=generic $(DEFINES) + +#Enable C++11 Support +COMPILER_FLAGS += -std=c++11 + LINKER_FLAGS = -Wl,-O1 # list Qt generated files -- GitLab