Skip to content

Commit af2fa8a

Browse files
authored
prepare separate make command for building GSSAPI binaries (#1106)
1 parent f774e70 commit af2fa8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ env:
7070
init: ## Install linters
7171
cd tools && go generate -x -tags=tools
7272

73-
build: ## Compile using plain go build
73+
build: ## Build exporter binary using plain go build.
7474
go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/mongodb_exporter
7575

76+
build-gssapi: ## Build exporter binary with GSSAPI support (requires CGO enabled).
77+
CGO_ENABLED=1 go build -ldflags="$(GO_BUILD_LDFLAGS)" -tags gssapi -o $(PMM_RELEASE_PATH)/mongodb_exporter
78+
7679
release: ## Build the binaries using goreleaser
7780
docker run --rm --privileged \
7881
-v ${PWD}:/go/src/github.com/user/repo \

0 commit comments

Comments
 (0)