Skip to content

Commit

Permalink
build: disable CGO
Browse files Browse the repository at this point in the history
Signed-off-by: Rory Z <[email protected]>
  • Loading branch information
Rory-Z committed Nov 15, 2023
1 parent b8fe9ff commit b0975a7
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 @@ -18,7 +18,7 @@ all: build

.PHONY: build
build:
GOOS=$(OS) go build -o $(LOCALBIN)/$(PROJECT_NAME)
GOOS=$(OS) CGO_ENABLED=0 go build -o $(LOCALBIN)/$(PROJECT_NAME)
@cp $(PROJECT_DIR)/config/example/config.yaml $(LOCALBIN)/config.yaml
@tar -zcvf emqx-exporter-$(OS)-$(VSN).tgz bin

Expand Down

0 comments on commit b0975a7

Please sign in to comment.