From 7b68773216fcb12d95fb5ca86e9151c99596a94b Mon Sep 17 00:00:00 2001 From: Dominik Menke Date: Mon, 18 Jan 2021 21:48:24 +0100 Subject: [PATCH] make: add -trimpath to release build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6c3097..10b9f16 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ DEPS = $(shell find . -type f -name '*.go') LDFLAGS = -s -w export GO111MODULE=on -build = GOOS=$(1) GOARCH=$(2) go build -ldflags "$(LDFLAGS)" -o $(TARGET)_$(1)_$(2)$(3) +build = GOOS=$(1) GOARCH=$(2) go build -ldflags "$(LDFLAGS)" -trimpath -o $(TARGET)_$(1)_$(2)$(3) # build a local version for tests, simply run make mattercheck: $(DEPS)