Add -linkmode external

This commit is contained in:
James Munnelly 2017-04-24 15:36:18 +01:00 committed by Bjørn Erik Pedersen
parent 3e0f1ad7f5
commit 24be139cb7

View file

@ -1,7 +1,7 @@
build:
main: main.go
binary: hugo
ldflags_template: -s -w -X hugolib.BuildDate={{.Date}} -extldflags "-static"
ldflags_template: -s -w -X hugolib.BuildDate={{.Date}} -linkmode external -extldflags "-static"
goos:
- darwin
- linux