From cdfef97a84b83e23e60115bf7eba85d78cfd302c Mon Sep 17 00:00:00 2001 From: Sebastian Sch Date: Wed, 28 Aug 2024 15:57:21 +0300 Subject: [PATCH] Allow to configure golang tags Signed-off-by: Sebastian Sch --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f089eb8..34a7fea 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ TARGET_ARCH ?= $(shell go env GOARCH) # Options for go build command GO_BUILD_OPTS ?= CGO_ENABLED=0 GOOS=$(TARGET_OS) GOARCH=$(TARGET_ARCH) +GO_TAGS ?=-tags no_openssl # Go tools GOLANGCI_LINT = $(BINDIR)/golangci-lint @@ -68,7 +69,7 @@ build: $(BUILDDIR)/$(BINARY_NAME) ; $(info Building $(BINARY_NAME)...) @ ## Buil $(info Done!) $(BUILDDIR)/$(BINARY_NAME): $(GOFILES) | $(BUILDDIR) - @$(GO_BUILD_OPTS) go build -o $(BUILDDIR)/$(BINARY_NAME) -tags no_openssl -ldflags $(LDFLAGS) -v cmd/rdma/main.go + @$(GO_BUILD_OPTS) go build -o $(BUILDDIR)/$(BINARY_NAME) $(GO_TAGS) -ldflags $(LDFLAGS) -v cmd/rdma/main.go # Tools $(GOLANGCI_LINT): ; $(info building golangci-lint...)