From 9657d183f8333c965dfb1561cb26b8892a194341 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Fri, 8 Dec 2017 16:29:45 +0100 Subject: [PATCH] Remove CGO_ENABLED=0 from make install It was writing to stdlib packages net, x/crypto, etc. and failing when it didn't have write access to them (which it often shouldn't) Fixes issue #941 Explained in golang issue: golang/go#18981 (fixed in develop/1.10) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fb15dfc4a..2ed827ed5 100644 --- a/Makefile +++ b/Makefile @@ -12,13 +12,13 @@ BUILD_FLAGS = -ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`g all: get_vendor_deps install test install: - CGO_ENABLED=0 go install $(BUILD_FLAGS) ./cmd/tendermint + go install $(BUILD_FLAGS) ./cmd/tendermint build: - CGO_ENABLED=0 go build $(BUILD_FLAGS) -o build/tendermint ./cmd/tendermint/ + go build $(BUILD_FLAGS) -o build/tendermint ./cmd/tendermint/ build_race: - CGO_ENABLED=0 go build -race $(BUILD_FLAGS) -o build/tendermint ./cmd/tendermint + go build -race $(BUILD_FLAGS) -o build/tendermint ./cmd/tendermint # dist builds binaries for all platforms and packages them for distribution dist: