From f9ceebad58a8c5ee1dc558d92ce459bd4c02c78c Mon Sep 17 00:00:00 2001 From: Evan Hazlett Date: Thu, 3 Oct 2019 12:35:57 -0400 Subject: [PATCH] static builds Signed-off-by: Evan Hazlett --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 166e1d1..81ae829 100644 --- a/Makefile +++ b/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"' .