Skip to content

Commit

Permalink
Disable cgo in Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Jan 24, 2013
1 parent 8514d69 commit 5976604
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 5976604

Please sign in to comment.