diff --git a/Makefile b/Makefile index fc0d1bd1d75..d30aebef82f 100644 --- a/Makefile +++ b/Makefile @@ -46,8 +46,8 @@ endif export GO111MODULE = on export GOFLAGS = -mod=vendor -GO_GCFLAGS = "all=-trimpath=${PWD}" -GO_ASMFLAGS = "all=-trimpath=${PWD}" +GO_GCFLAGS = "all=-trimpath=$(CURDIR)" +GO_ASMFLAGS = "all=-trimpath=$(CURDIR)" LDFLAGS_linux = -static LDFLAGS_darwin =