Skip to content

Commit

Permalink
Merge pull request #580 from bn222/tags
Browse files Browse the repository at this point in the history
Allow to override go tags in build
  • Loading branch information
adrianchiris authored Jul 25, 2024
2 parents a967ce4 + ec814e5 commit 96a258e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 96a258e

Please sign in to comment.