You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
25
25
PACKAGE=github.com/containerd/containerd
26
+
SHIM_CGO_ENABLED ?= 0
26
27
27
28
ifneq "$(strip$(shell command -v go 2>/dev/null))" ""
28
29
GOOS ?= $(shell go env GOOS)
@@ -184,15 +185,15 @@ bin/%: cmd/% FORCE
184
185
185
186
bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220
186
187
@echo "$(WHALE) bin/containerd-shim"
187
-
@CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/containerd-shim ${SHIM_GO_LDFLAGS}${GO_TAGS} ./cmd/containerd-shim
188
+
@CGO_ENABLED=${SHIM_CGO_ENABLED} go build ${GO_BUILD_FLAGS} -o bin/containerd-shim ${SHIM_GO_LDFLAGS}${GO_TAGS} ./cmd/containerd-shim
188
189
189
190
bin/containerd-shim-runc-v1: cmd/containerd-shim-runc-v1 FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220
190
191
@echo "$(WHALE) bin/containerd-shim-runc-v1"
191
-
@CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v1 ${SHIM_GO_LDFLAGS}${GO_TAGS} ./cmd/containerd-shim-runc-v1
192
+
@CGO_ENABLED=${SHIM_CGO_ENABLED} go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v1 ${SHIM_GO_LDFLAGS}${GO_TAGS} ./cmd/containerd-shim-runc-v1
192
193
193
194
bin/containerd-shim-runc-v2: cmd/containerd-shim-runc-v2 FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220
194
195
@echo "$(WHALE) bin/containerd-shim-runc-v2"
195
-
@CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v2 ${SHIM_GO_LDFLAGS}${GO_TAGS} ./cmd/containerd-shim-runc-v2
196
+
@CGO_ENABLED=${SHIM_CGO_ENABLED} go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v2 ${SHIM_GO_LDFLAGS}${GO_TAGS} ./cmd/containerd-shim-runc-v2
0 commit comments