From e1b2855d4ca363a8a5d5c3752a360ce4e6f3da90 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Wed, 2 May 2018 02:07:43 -0700 Subject: [PATCH] Make crictl and critest statically linked. Signed-off-by: Lantao Liu --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c0d6ddd95f..4626720cd6 100644 --- a/Makefile +++ b/Makefile @@ -44,12 +44,12 @@ ifndef GOPATH endif critest: check-gopath - $(GO) test -c \ + CGO_ENABLED=0 $(GO) test -c \ $(PROJECT)/cmd/critest \ -o $(GOBINDIR)/bin/critest crictl: check-gopath - $(GO) install \ + CGO_ENABLED=0 $(GO) install \ $(PROJECT)/cmd/crictl clean: