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:
parent
230f03a47d
commit
7709115afe
3
Makefile
3
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user