Build a static binary
Update Makefile to build a static binary by default.
This commit is contained in:
parent
473112216f
commit
2943da00e2
2
Makefile
2
Makefile
@ -43,7 +43,7 @@ dep:
|
|||||||
build: clean $(BINARY)
|
build: clean $(BINARY)
|
||||||
|
|
||||||
$(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
|
.PHONY: test
|
||||||
test: dep lint
|
test: dep lint
|
||||||
|
Loading…
Reference in New Issue
Block a user