Build a fully static Windows extended binary

This commit is contained in:
Bjørn Erik Pedersen 2018-07-09 20:42:08 +02:00
parent a4fad5be6b
commit febf0aec8b
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -1,11 +1,14 @@
project_name: hugo_extended
builds:
- binary: hugo
ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
ldflags:
- -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
- "-extldflags '-static'"
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_LDFLAGS="-static"
flags:
- -tags
- extended