mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Disable CGO so as to build a static binary
https://github.com/linuxkit/kubernetes/pull/1#issuecomment-345253075 lead to https://circleci.com/gh/linuxkit/kubernetes/15 Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
eceb6d11f8
commit
532b41ff8b
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ PREFIX?=/usr/local
|
|||||||
GOMETALINTER:=$(shell command -v gometalinter 2> /dev/null)
|
GOMETALINTER:=$(shell command -v gometalinter 2> /dev/null)
|
||||||
|
|
||||||
dist/moby dist/moby-$(GOOS): $(DEPS)
|
dist/moby dist/moby-$(GOOS): $(DEPS)
|
||||||
go build \
|
CGO_ENABLED=0 go build \
|
||||||
--ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" \
|
--ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" \
|
||||||
-o $@ ./cmd/moby
|
-o $@ ./cmd/moby
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user