enable building with cgo for go-ceph usage

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-01-07 14:26:49 +01:00 committed by mergify[bot]
parent 66b73e3682
commit 3226b17d08

View File

@ -58,7 +58,7 @@ func-test:
.PHONY: cephcsi
cephcsi:
if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi
CGO_ENABLED=0 GOOS=linux GOARCH=$(GOARCH) go build -a -ldflags '$(LDFLAGS) -extldflags "-static"' -o _output/cephcsi ./cmd/
GOOS=linux GOARCH=$(GOARCH) go build -a -ldflags '$(LDFLAGS)' -o _output/cephcsi ./cmd/
image-cephcsi: cephcsi
cp _output/cephcsi deploy/cephcsi/image/cephcsi