Skip to content

Commit b0a7f64

Browse files
committed
CGO_ENABLED=0 when build for packaging
1 parent a2a8095 commit b0a7f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ build:
4040
# We need to force rebuild "mackerel-check" if GOOS or GOARCH are passed.
4141
build/mackerel-check: $(patsubst %,depends_on,$(GOOS)$(GOARCH))
4242
mkdir -p build
43-
go build -ldflags="-s -w -X main.gitcommit=$(CURRENT_REVISION)" \
43+
CGO_ENABLED=0 go build -ldflags="-s -w -X main.gitcommit=$(CURRENT_REVISION)" \
4444
-o build/mackerel-check
4545

4646
.PHONY: depends_on

0 commit comments

Comments
 (0)