Skip to content

Commit 7a84d52

Browse files
authored
Merge pull request mackerelio#800 from mackerelio/cgo-enabled-0
CGO_ENABLED=0 when build for packaging
2 parents a2a8095 + b0a7f64 commit 7a84d52

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)