Merge pull request #401 from jfrazelle/i-have-this-thing-for-static-binaries

static binary \o/
This commit is contained in:
Mrunal Patel 2015-11-16 11:39:30 -08:00
commit 7d9a6699f7
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ export GOPATH:=$(CURDIR)/Godeps/_workspace:$(GOPATH)
all: all:
go build -tags "$(BUILDTAGS)" -o runc . go build -tags "$(BUILDTAGS)" -o runc .
static:
CGO_ENABLED=1 go build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o runc .
vet: vet:
go get golang.org/x/tools/cmd/vet go get golang.org/x/tools/cmd/vet