static builds
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
ab4390d5aa
commit
f9ceebad58
1 changed files with 1 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -25,7 +25,6 @@
|
|||
|
||||
PACKAGES=$(shell go list ./... | grep -v /vendor/)
|
||||
REVISION=$(shell git rev-parse HEAD)
|
||||
CGO_ENABLED=0
|
||||
|
||||
all: build
|
||||
|
||||
|
@ -33,4 +32,4 @@ protos:
|
|||
@protobuild --quiet ${PACKAGES}
|
||||
|
||||
build:
|
||||
@go build -v -installsuffix cgo
|
||||
@CGO_ENABLED=0 go build -v -a -ldflags '-extldflags "-static"' .
|
||||
|
|
Loading…
Reference in a new issue