Set extldflags to static when building

This commit is contained in:
James Munnelly 2017-04-24 15:22:23 +01:00 committed by Bjørn Erik Pedersen
parent 0bd0593a77
commit 3e0f1ad7f5

View file

@ -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