trim code path in stack trace.

Added -trimpath flag in -gcflags to reduce codepath in stack trace.
Fixes #2000

In case of multiple GOPATH, it will trimpath of first one

Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
This commit is contained in:
Kunal Kushwaha
2018-01-18 13:26:36 +09:00
parent acc6011ac1
commit ad4f265497
2 changed files with 10 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ COMMANDS += containerd-shim
# check GOOS for cross compile builds
ifeq ($(GOOS),linux)
GO_GCFLAGS= -buildmode=pie
GO_GCFLAGS += -buildmode=pie
endif
# amd64 supports go test -race