Allow setting of compiler options

To allow e.g. building a static binary with:

    make binaries GO_GCFLAGS="--ldflags '-extldflags \"-fno-PIC -static\"'"

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-08-01 16:43:42 +01:00
parent 230f03a47d
commit 7709115afe

View File

@ -70,10 +70,11 @@ boiler:
cri-containerd: check-gopath
$(GO) build -o $(BUILD_DIR)/$@ \
$(BUILD_TAGS) \
$(GO_LDFLAGS) $(GO_GCFLAGS) \
$(PROJECT)/cmd/cri-containerd
test:
go test -timeout=10m -race ./pkg/... $(BUILD_TAGS)
go test -timeout=10m -race ./pkg/... $(BUILD_TAGS) $(GO_LDFLAGS) $(GO_GCFLAGS)
test-cri:
@./hack/test-cri.sh