From: Youngjae Cho Date: Thu, 26 Dec 2024 10:36:03 +0000 (+0900) Subject: Fix c++ standard from 14 to 17 for abseil-cpp version up to 20240722.0 X-Git-Tag: accepted/tizen/unified/20250111.083659^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified_x_asan;p=platform%2Fupstream%2Fnsjail.git Fix c++ standard from 14 to 17 for abseil-cpp version up to 20240722.0 It fixes the below build error. /usr/include/absl/strings/string_view.h:53:26: error: 'string_view' in namespace 'std' does not name a type 53 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:53:21: note: 'std::string_view' is only available from C++17 onwards 53 | using string_view = std::string_view; Change-Id: I65c3ae573d9510934222e3b41764dca3285cc2cd Signed-off-by: Youngjae Cho --- diff --git a/Makefile b/Makefile index b38a618..f6ce3db 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ COMMON_FLAGS += -O2 -c \ -Wl,-z,relro CXXFLAGS += $(USER_DEFINES) $(COMMON_FLAGS) $(shell pkg-config --cflags protobuf) \ - -std=c++14 -fno-exceptions -Wno-unused -Wno-unused-parameter + -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter LDFLAGS += -pie -Wl,-z,noexecstack -lpthread $(shell pkg-config --libs protobuf) \ -Wl,-z,relro