From 86b64005239cbdb1f3aebaf63249c85fd9b8ba81 Mon Sep 17 00:00:00 2001 From: Avelino Date: Sat, 15 Aug 2020 18:42:29 -0300 Subject: [PATCH] link external and -static Signed-off-by: Avelino --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 6519328a4..e4b8d0f45 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,7 +5,7 @@ builds: flags: - -trimpath ldflags: - - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser + - -s -w -linkmode external -extldflags "-static" -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser goos: - windows - darwin