Add static_build tag for localkube
Fixes https://github.com/kubernetes/minikube/issues/1422 godbus requires the static_build tag when building. Normal static compliation doesn't add this go build tag automatically.pull/1434/head
parent
fa118e1a94
commit
1fa9594252
2
Makefile
2
Makefile
|
|
@ -69,7 +69,7 @@ out/minikube$(IS_EXE): out/minikube-$(GOOS)-$(GOARCH)$(IS_EXE)
|
|||
|
||||
out/localkube: $(GOPATH)/src/$(ORG) $(shell $(LOCALKUBEFILES))
|
||||
ifeq ($(BUILD_OS),Linux)
|
||||
CGO_ENABLED=1 go build -ldflags=$(LOCALKUBE_LDFLAGS) -o $(BUILD_DIR)/localkube ./cmd/localkube
|
||||
CGO_ENABLED=1 go build -tags static_build -ldflags=$(LOCALKUBE_LDFLAGS) -o $(BUILD_DIR)/localkube ./cmd/localkube
|
||||
else
|
||||
docker run -w /go/src/$(REPOPATH) -e IN_DOCKER=1 -v $(shell pwd):/go/src/$(REPOPATH) $(BUILD_IMAGE) make out/localkube
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue