From 5976604f8e39922d3e15a9239689a5cdbf9a4205 Mon Sep 17 00:00:00 2001 From: Chen Yufei Date: Thu, 24 Jan 2013 19:08:17 +0800 Subject: [PATCH] Disable cgo in Makefile. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c50fa38..3dc364d 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ PREFIX := shadowsocks LOCAL := $(GOBIN)/$(PREFIX)-local SERVER := $(GOBIN)/$(PREFIX)-server +CGO := CGO_ENABLED=0 # TODO define the install package path for use in clean and detect whether # package need re-build @@ -16,11 +17,11 @@ clean: $(LOCAL): shadowsocks/*.go cmd/$(PREFIX)-local/*.go cd shadowsocks; go install - cd cmd/$(PREFIX)-local; go install + cd cmd/$(PREFIX)-local; $(CGO) go install -a $(SERVER): shadowsocks/*.go cmd/$(PREFIX)-server/*.go cd shadowsocks; go install - cd cmd/$(PREFIX)-server; go install + cd cmd/$(PREFIX)-server; $(CGO) go install -a test: cd shadowsocks; go test