From ec814e56734a73364151b051170d9baf72dbcd1a Mon Sep 17 00:00:00 2001 From: Balazs Nemeth Date: Thu, 25 Jul 2024 14:02:52 +0200 Subject: [PATCH] Allow to override go tags in build Signed-off-by: Balazs Nemeth --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d7d30c9fa..316dc8800 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ endif GO_BUILD_OPTS ?= GO_LDFLAGS ?= GO_FLAGS ?= +GO_TAGS ?=-tags no_openssl ifdef STATIC GO_BUILD_OPTS+= CGO_ENABLED=0 @@ -50,7 +51,7 @@ $(BINDIR) $(BUILDDIR) $(COVERAGE_DIR): ; $(info Creating directory $@...) .PHONY: build build: | $(BUILDDIR) ; $(info Building $(BINARY_NAME)...) @ ## Build SR-IOV Network device plugin - $Q cd $(CURDIR)/cmd/$(BINARY_NAME) && $(GO_BUILD_OPTS) go build -ldflags '$(GO_LDFLAGS)' $(GO_FLAGS) -o $(BUILDDIR)/$(BINARY_NAME) -tags no_openssl -v + $Q cd $(CURDIR)/cmd/$(BINARY_NAME) && $(GO_BUILD_OPTS) go build -ldflags '$(GO_LDFLAGS)' $(GO_FLAGS) -o $(BUILDDIR)/$(BINARY_NAME) $(GO_TAGS) -v $(info Done!) GOLANGCI_LINT = $(BINDIR)/golangci-lint