static builds

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2019-10-03 12:35:57 -04:00
parent ab4390d5aa
commit f9ceebad58
No known key found for this signature in database
GPG Key ID: A519480096146526
1 changed files with 1 additions and 2 deletions

View File

@ -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"' .