From 2943da00e2c4e68e75d42daa734de3ec6a751474 Mon Sep 17 00:00:00 2001 From: YAEGASHI Takeshi Date: Tue, 22 Jan 2019 02:49:41 +0900 Subject: [PATCH] Build a static binary Update Makefile to build a static binary by default. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8447dfc..5571c56 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ dep: build: clean $(BINARY) $(BINARY): - $(GO) build -ldflags="-X main.VERSION=${VERSION}" -o $(BINARY) github.com/pusher/oauth2_proxy + CGO_ENABLED=0 $(GO) build -a -installsuffix cgo -ldflags="-X main.VERSION=${VERSION}" -o $@ github.com/pusher/oauth2_proxy .PHONY: test test: dep lint