We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4601758 + 2e63785 commit 6f3e28bCopy full SHA for 6f3e28b
Makefile
@@ -38,7 +38,7 @@ endif
38
all: gce-pd-driver gce-pd-driver-windows
39
gce-pd-driver: require-GCE_PD_CSI_STAGING_VERSION
40
mkdir -p bin
41
- go build -mod=vendor -gcflags=$(GCFLAGS) -ldflags "-X main.version=$(STAGINGVERSION)" -o bin/${DRIVERBINARY} ./cmd/gce-pd-csi-driver/
+ go build -mod=vendor -gcflags=$(GCFLAGS) -ldflags "-linkmode 'external' -extldflags '-static' -X main.version=$(STAGINGVERSION)" -o bin/${DRIVERBINARY} ./cmd/gce-pd-csi-driver/
42
43
gce-pd-driver-windows: require-GCE_PD_CSI_STAGING_VERSION
44
ifeq (${GOARCH}, amd64)
0 commit comments