Set extldflags to static when building
authorJames Munnelly <munnerz@users.noreply.github.com>
Mon, 24 Apr 2017 14:22:23 +0000 (15:22 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 24 Apr 2017 18:09:32 +0000 (20:09 +0200)
goreleaser.yml

index 4b7fef63a1babb7dcbf3e2a1e8c2e5455424db01..72e8d06f9fd6ecee0eb83c0677bb6da67dadbd25 100644 (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