From f08b981814ef96e46b4cdf74ee59e8aab6846600 Mon Sep 17 00:00:00 2001 From: Yusuke KUOKA Date: Wed, 16 May 2018 22:46:35 +0900 Subject: [PATCH] Fix static linking for linux binaries built on CircleCI Fixes #146 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a940657d..02cdb5f2 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ integration: .PHONY: integration cross: - gox -os '!freebsd !netbsd' -arch '!arm' -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags '-X main.Version=${TAG}' ${TARGETS} + env CGO_ENABLED=0 gox -os '!freebsd !netbsd' -arch '!arm' -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags '-X main.Version=${TAG}' ${TARGETS} .PHONY: cross static-linux: