File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Base path used to install.
2
2
DESTDIR =/usr/local
3
+ GC =go
3
4
GO_BUILD_FLAGS =
4
5
GO_TAGS =
5
6
GO_LDFLAGS =-ldflags '-s -w -extldflags "-static"'
@@ -12,10 +13,10 @@ all: binaries
12
13
binaries : bin/gvisor-containerd-shim bin/containerd-shim-runsc-v1
13
14
14
15
bin/gvisor-containerd-shim : $(SOURCES )
15
- CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/gvisor-containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/gvisor-containerd-shim
16
+ CGO_ENABLED=0 ${GC} build ${GO_BUILD_FLAGS} -o bin/gvisor-containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/gvisor-containerd-shim
16
17
17
18
bin/containerd-shim-runsc-v1 : $(SOURCES )
18
- CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runsc-v1 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runsc-v1
19
+ CGO_ENABLED=0 ${GC} build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runsc-v1 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runsc-v1
19
20
20
21
install : bin/gvisor-containerd-shim
21
22
mkdir -p $(DESTDIR ) /bin
You can’t perform that action at this time.
0 commit comments