Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 462bafb

Browse files
brb-gfvoznika
authored andcommitted
Add variable controlling the go binary path. (#35)
1 parent c4b56cb commit 462bafb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Base path used to install.
22
DESTDIR=/usr/local
3+
GC=go
34
GO_BUILD_FLAGS=
45
GO_TAGS=
56
GO_LDFLAGS=-ldflags '-s -w -extldflags "-static"'
@@ -12,10 +13,10 @@ all: binaries
1213
binaries: bin/gvisor-containerd-shim bin/containerd-shim-runsc-v1
1314

1415
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
1617

1718
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
1920

2021
install: bin/gvisor-containerd-shim
2122
mkdir -p $(DESTDIR)/bin

0 commit comments

Comments
 (0)