From 3226b17d087fbb504c96783ea95278f2c6851ec4 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 7 Jan 2020 14:26:49 +0100 Subject: [PATCH] enable building with cgo for go-ceph usage Signed-off-by: Niels de Vos --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 46cacf91d..d596ed1db 100644 --- a/Makefile +++ b/Makefile @@ -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