aports/testing/cloudfoundry-cli/fix-cgo.patch
2024-03-13 01:34:07 +00:00

30 lines
940 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -156,23 +156,23 @@
go build -ldflags "$(LD_FLAGS)" -o out/cf .
else
out/cf: $(GOSRC)
- CGO_ENABLED=0 go build \
+ go build \
$(REQUIRED_FOR_STATIC_BINARY) \
-ldflags "$(LD_FLAGS_LINUX)" -o out/cf .
endif
out/cf-cli_linux_i686: $(GOSRC)
- CGO_ENABLED=0 GOARCH=386 GOOS=linux go build \
+ GOARCH=386 GOOS=linux go build \
$(REQUIRED_FOR_STATIC_BINARY) \
-ldflags "$(LD_FLAGS_LINUX)" -o out/cf-cli_linux_i686 .
out/cf-cli_linux_x86-64: $(GOSRC)
- CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build \
+ GOARCH=amd64 GOOS=linux go build \
$(REQUIRED_FOR_STATIC_BINARY) \
-ldflags "$(LD_FLAGS_LINUX)" -o out/cf-cli_linux_x86-64 .
out/cf-cli_linux_arm64: $(GOSRC)
- CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build \
+ GOARCH=arm64 GOOS=linux go build \
$(REQUIRED_FOR_STATIC_BINARY) \
-ldflags "$(LD_FLAGS_LINUX)" -o out/cf-cli_linux_arm64 .