Skip to content

Commit d0ae0ef

Browse files
author
Matthew Wong
authored
Merge pull request kubernetes-retired#660 from ianchakeres/osx-fix-gb-make
Fixed glusterfs-simple-provisioner Makefile, so that it builds on osx.
2 parents 44db42a + 8e7f1d8 commit d0ae0ef

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

gluster/glusterfs/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ IMAGE = $(REGISTRY)glusterfs-simple-provisioner:$(VERSION)
2222
MUTABLE_IMAGE = $(REGISTRY)glusterfs-simple-provisioner:latest
2323

2424
all build:
25-
GOOS=linux go install -v ./cmd/glusterfs-simple-provisioner
26-
GOOS=linux CGO_ENABLED=0 go build ./cmd/glusterfs-simple-provisioner
25+
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o glusterfs-simple-provisioner ./cmd/glusterfs-simple-provisioner
2726
.PHONY: all build
2827

2928
build-mac:
30-
GOOS=darwin go install -v ./cmd/glusterfs-simple-provisioner
31-
GOOS=darwin go build ./cmd/glusterfs-simple-provisioner
29+
CGO_ENABLED=0 GOOS=darwin go build -a -ldflags '-extldflags "-static"' -o glusterfs-simple-provisioner ./cmd/glusterfs-simple-provisioner
3230
.PHONY: build-mac
3331

3432
container: build quick-container

0 commit comments

Comments
 (0)