Static compilation :)
This commit is contained in:
parent
b5de5bf967
commit
714f9ecf6e
4
Makefile
4
Makefile
|
@ -1,5 +1,7 @@
|
|||
SHELL := /bin/bash
|
||||
|
||||
GO_FLAGS := -a -ldflags '-extldflags "-static"'
|
||||
|
||||
BINDIR := bin
|
||||
EXECUTABLE_CLI := airshipctl
|
||||
|
||||
|
@ -21,7 +23,7 @@ MIN_COVERAGE := 70
|
|||
|
||||
.PHONY: build
|
||||
build:
|
||||
@go build -o $(BINDIR)/$(EXECUTABLE_CLI)
|
||||
@CGO_ENABLED=0 go build -o $(BINDIR)/$(EXECUTABLE_CLI) $(GO_FLAGS)
|
||||
|
||||
.PHONY: test
|
||||
test: build
|
||||
|
|
Loading…
Reference in New Issue