ref: 3e0f1ad7f529a584c6726fdff7adecec720ebb3a
parent: 0bd0593a7791ef1494c428a56b6895922aab22b8
author: James Munnelly <[email protected]>
date: Mon Apr 24 11:22:23 EDT 2017
Set extldflags to static when building
--- 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