From 9f671238b2b4ce7f5ad520251ababbb1aaccf59b Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Thu, 23 Sep 2021 17:54:41 +0200 Subject: [PATCH] make: specify C++ standard version in CXXFLAGS The standard is now specified explicitly. The chosen standard, c++11, is the latest supported by gcc-4.8.5, which is the oldest compiler still in use on some systems (centos 7). Signed-off-by: Konrad Sztyber Change-Id: I7ba84278b28e6d96f43b52014c358a74902188b9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9597 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk --- mk/spdk.common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk index bac10b0c60..9d5793b03d 100644 --- a/mk/spdk.common.mk +++ b/mk/spdk.common.mk @@ -294,7 +294,7 @@ SYS_LIBS += -laccel-config endif CFLAGS += $(COMMON_CFLAGS) -Wno-pointer-sign -Wstrict-prototypes -Wold-style-definition -std=gnu99 -CXXFLAGS += $(COMMON_CFLAGS) +CXXFLAGS += $(COMMON_CFLAGS) -std=c++11 SYS_LIBS += -lrt SYS_LIBS += -luuid