commit 3e0f1ad7f529a584c6726fdff7adecec720ebb3a
parent 0bd0593a7791ef1494c428a56b6895922aab22b8
Author: James Munnelly <munnerz@users.noreply.github.com>
Date: Mon, 24 Apr 2017 15:22:23 +0100
Set extldflags to static when building
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/goreleaser.yml b/goreleaser.yml
@@ -1,7 +1,7 @@
build:
main: main.go
binary: hugo
- ldflags_template: -s -w -X hugolib.BuildDate={{.Date}}
+ ldflags_template: -s -w -X hugolib.BuildDate={{.Date}} -extldflags "-static"
goos:
- darwin
- linux