hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit febf0aec8beb40d4e8c0886ca404ab1825542ab2
parent a4fad5be6be821e959d8ffec999080d9c8a74c84
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Mon,  9 Jul 2018 20:42:08 +0200

Build a fully static Windows extended binary

Diffstat:
Mgoreleaser-extended.yml | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/goreleaser-extended.yml b/goreleaser-extended.yml
@@ -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