Skip to content

Commit

Permalink
Merge pull request #800 from mackerelio/cgo-enabled-0
Browse files Browse the repository at this point in the history
CGO_ENABLED=0 when build for packaging
  • Loading branch information
Arthur1 committed Nov 14, 2023
2 parents a2a8095 + b0a7f64 commit 7a84d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ build:
# We need to force rebuild "mackerel-check" if GOOS or GOARCH are passed.
build/mackerel-check: $(patsubst %,depends_on,$(GOOS)$(GOARCH))
mkdir -p build
go build -ldflags="-s -w -X main.gitcommit=$(CURRENT_REVISION)" \
CGO_ENABLED=0 go build -ldflags="-s -w -X main.gitcommit=$(CURRENT_REVISION)" \
-o build/mackerel-check

.PHONY: depends_on
Expand Down

0 comments on commit 7a84d52

Please sign in to comment.