Skip to content

Commit dc8abed

Browse files
committed
Add netgo to localkube build
ref google/cadvisor#1719
1 parent 9f11fae commit dc8abed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ out/localkube: $(shell $(LOCALKUBEFILES))
9595
ifeq ($(LOCALKUBE_BUILD_IN_DOCKER),y)
9696
$(KUBE_CROSS_DOCKER_CMD) make $@
9797
else
98-
CGO_ENABLED=1 go build -tags static_build -ldflags=$(LOCALKUBE_LDFLAGS) -o $(BUILD_DIR)/localkube ./cmd/localkube
98+
CGO_ENABLED=1 go build -tags static_build,netgo -ldflags=$(LOCALKUBE_LDFLAGS) -o $(BUILD_DIR)/localkube ./cmd/localkube
9999
endif
100100

101101
out/minikube-windows-amd64.exe: out/minikube-windows-amd64

0 commit comments

Comments
 (0)