git.iko.soy/typeable/oauth2-proxy
on master help sign in
Build a static binary

Update Makefile to build a static binary by default.

commit2943da00e2c4e68e75d42daa734de3ec6a751474 authorYAEGASHI Takeshi <yaegashi@debian.org> dateTue 22 Jan 2019, 02:49 (8 years ago) parent4731122
1 file changed+1−1
Makefile+1−1
Makefile+1−1
@@ -43,7 +43,7 @@ dep:
4343build: clean $(BINARY)
4444
4545$(BINARY):
46− $(GO) build -ldflags="-X main.VERSION=${VERSION}" -o $(BINARY) github.com/pusher/oauth2_proxy
46+ CGO_ENABLED=0 $(GO) build -a -installsuffix cgo -ldflags="-X main.VERSION=${VERSION}" -o $@ github.com/pusher/oauth2_proxy
4747
4848.PHONY: test
4949test: dep lint