diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk index e47de17aba..2494ce028c 100644 --- a/package/pkg-golang.mk +++ b/package/pkg-golang.mk @@ -61,6 +61,7 @@ $(2)_WORKSPACE ?= _gopath $(2)_BUILD_OPTS += \ -ldflags "$$($(2)_LDFLAGS)" \ -tags "$$($(2)_TAGS)" \ + -trimpath \ -p $(PARALLEL_JOBS) # Target packages need the Go compiler on the host.