From 532b41ff8b92cd1807ce742631b9610c895f4f30 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 17 Nov 2017 14:21:17 +0000 Subject: [PATCH] Disable CGO so as to build a static binary https://github.com/linuxkit/kubernetes/pull/1#issuecomment-345253075 lead to https://circleci.com/gh/linuxkit/kubernetes/15 Signed-off-by: Ian Campbell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 67ee94185..2eba82e53 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ PREFIX?=/usr/local GOMETALINTER:=$(shell command -v gometalinter 2> /dev/null) dist/moby dist/moby-$(GOOS): $(DEPS) - go build \ + CGO_ENABLED=0 go build \ --ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" \ -o $@ ./cmd/moby