Skip to content

Commit

Permalink
Merge pull request #62 from SchSeba/allow_golang_flags_config
Browse files Browse the repository at this point in the history
Allow to configure golang tags
  • Loading branch information
adrianchiris authored Sep 3, 2024
2 parents 2a0db0d + cdfef97 commit d504c2c
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 @@ -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
Expand All @@ -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...)
Expand Down

0 comments on commit d504c2c

Please sign in to comment.