From bcfcd1d04a17a1fa527bf3e8bf8c5235aeb2cb96 Mon Sep 17 00:00:00 2001 From: kpango Date: Mon, 18 Jan 2021 14:27:13 +0900 Subject: [PATCH] add gnu option for build flag Signed-off-by: kpango --- Makefile.d/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.d/build.mk b/Makefile.d/build.mk index 70d3487a59..a628687675 100644 --- a/Makefile.d/build.mk +++ b/Makefile.d/build.mk @@ -47,7 +47,7 @@ cmd/agent/core/ngt/ngt: \ GOPRIVATE=$(GOPRIVATE) \ go build \ --ldflags "-s -w -linkmode 'external' \ - -extldflags '-static -fPIC -pthread -fopenmp -std=c++20 -lstdc++ -lm $(EXTLDFLAGS)' \ + -extldflags '-static -fPIC -pthread -fopenmp -std=gnu++20 -lstdc++ -lm $(EXTLDFLAGS)' \ -X '$(GOPKG)/internal/info.Version=$(VERSION)' \ -X '$(GOPKG)/internal/info.GitCommit=$(GIT_COMMIT)' \ -X '$(GOPKG)/internal/info.BuildTime=$(DATETIME)' \