| 1 | |
| 2 | |
| 3 | @@ -156,23 +156,23 @@
|
| 4 | go build -ldflags "$(LD_FLAGS)" -o out/cf .
|
| 5 | else
|
| 6 | out/cf: $(GOSRC)
|
| 7 | - CGO_ENABLED=0 go build \
|
| 8 | + go build \
|
| 9 | $(REQUIRED_FOR_STATIC_BINARY) \
|
| 10 | -ldflags "$(LD_FLAGS_LINUX)" -o out/cf .
|
| 11 | endif
|
| 12 |
|
| 13 | out/cf-cli_linux_i686: $(GOSRC)
|
| 14 | - CGO_ENABLED=0 GOARCH=386 GOOS=linux go build \
|
| 15 | + GOARCH=386 GOOS=linux go build \
|
| 16 | $(REQUIRED_FOR_STATIC_BINARY) \
|
| 17 | -ldflags "$(LD_FLAGS_LINUX)" -o out/cf-cli_linux_i686 .
|
| 18 |
|
| 19 | out/cf-cli_linux_x86-64: $(GOSRC)
|
| 20 | - CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build \
|
| 21 | + GOARCH=amd64 GOOS=linux go build \
|
| 22 | $(REQUIRED_FOR_STATIC_BINARY) \
|
| 23 | -ldflags "$(LD_FLAGS_LINUX)" -o out/cf-cli_linux_x86-64 .
|
| 24 |
|
| 25 | out/cf-cli_linux_arm64: $(GOSRC)
|
| 26 | - CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build \
|
| 27 | + GOARCH=arm64 GOOS=linux go build \
|
| 28 | $(REQUIRED_FOR_STATIC_BINARY) \
|
| 29 | -ldflags "$(LD_FLAGS_LINUX)" -o out/cf-cli_linux_arm64 .
|
| 30 |
|