From f2c2a6b3ab4fcce579b013a31696cfb89355f825 Mon Sep 17 00:00:00 2001 From: Stefan Liu Date: Fri, 11 Mar 2022 17:39:46 +0800 Subject: [PATCH] Force purge go name resolution (#116) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 45de8041..d978f057 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,9 @@ DOCKER_TAG=$(ARCH)-$(VERSION) UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Linux) - BUILD_NODE_PAR = -ldflags '-w -extldflags "-static -lm" -X github.com/polynetwork/poly/common/config.Version=$(VERSION) -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn' #-race + BUILD_NODE_PAR = -tags netgo -ldflags '-w -extldflags "-static -lm" -X github.com/polynetwork/poly/common/config.Version=$(VERSION) -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn' #-race else - BUILD_NODE_PAR = -ldflags '-X github.com/polynetwork/poly/common/config.Version=$(VERSION) -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn' #-race + BUILD_NODE_PAR = -tags netgo -ldflags '-X github.com/polynetwork/poly/common/config.Version=$(VERSION) -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn' #-race endif SRC_FILES = $(shell git ls-files | grep -e .go$ | grep -v _test.go)