From c45756535d4d5ae0cc0b7a221b87b232c23f6215 Mon Sep 17 00:00:00 2001 From: idoko Date: Tue, 1 Jul 2025 12:56:03 +0100 Subject: [PATCH] prepare separate make command for building GSSAPI binaries --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 26901bb55..e19f35ec2 100644 --- a/Makefile +++ b/Makefile @@ -70,9 +70,12 @@ env: init: ## Install linters cd tools && go generate -x -tags=tools -build: ## Compile using plain go build +build: ## Build exporter binary using plain go build. go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/mongodb_exporter +build-gssapi: ## Build exporter binary with GSSAPI support (requires CGO enabled). + CGO_ENABLED=1 go build -ldflags="$(GO_BUILD_LDFLAGS)" -tags gssapi -o $(PMM_RELEASE_PATH)/mongodb_exporter + release: ## Build the binaries using goreleaser docker run --rm --privileged \ -v ${PWD}:/go/src/github.com/user/repo \