From 07ae6f2aade7086bbd21f094de8fa814bc033184 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Tue, 7 Apr 2020 23:33:42 +0200 Subject: [PATCH] build: Makefile: GO_EXTRA_BUILDFLAGS --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3dfe428..6038420 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,8 @@ GOHOSTARCH ?= $(shell bash -c 'source <($(GO) env) && echo "$$GOHOSTARCH"') GO_ENV_VARS := GO111MODULE=on GO_LDFLAGS := "-X github.com/zrepl/zrepl/version.zreplVersion=$(_ZREPL_VERSION)" GO_MOD_READONLY := -mod=readonly -GO_BUILDFLAGS := $(GO_MOD_READONLY) +GO_EXTRA_BUILDFLAGS := +GO_BUILDFLAGS := $(GO_MOD_READONLY) $(GO_EXTRA_BUILDFLAGS) GO_BUILD := $(GO_ENV_VARS) $(GO) build $(GO_BUILDFLAGS) -ldflags $(GO_LDFLAGS) GOLANGCI_LINT := golangci-lint ifneq ($(GOARM),)