diff --git a/cmd/crowdsec-cli/Makefile b/cmd/crowdsec-cli/Makefile index d4e7ca723..2a788b7c0 100644 --- a/cmd/crowdsec-cli/Makefile +++ b/cmd/crowdsec-cli/Makefile @@ -21,7 +21,7 @@ BIN_PREFIX = $(PREFIX)"/usr/local/bin/" all: clean build build: clean - $(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME) + $(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME) build-bincover: clean $(GOTEST) . -tags testrunmain -coverpkg=$(go list github.com/crowdsecurity/crowdsec/... | grep -v -e 'pkg/database' -e 'plugins/notifications' -e 'pkg/protobufs' -e 'pkg/cwversions' -e 'pkg/cstest' -e 'pkg/models') -covermode=atomic $(LD_OPTS) -c -o $(BINARY_NAME_COVER) diff --git a/cmd/crowdsec/Makefile b/cmd/crowdsec/Makefile index 94efa22a8..81ef562db 100644 --- a/cmd/crowdsec/Makefile +++ b/cmd/crowdsec/Makefile @@ -26,7 +26,7 @@ SYSTEMD_PATH_FILE = "/etc/systemd/system/crowdsec.service" all: clean test build build: clean - $(GOBUILD) $(LD_OPTS) -o $(CROWDSEC_BIN) + $(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(CROWDSEC_BIN) build-bincover: clean $(GOTEST) . -tags testrunmain -coverpkg=$(go list github.com/crowdsecurity/crowdsec/... | grep -v -e 'pkg/database' -e 'plugins/notifications' -e 'pkg/protobufs' -e 'pkg/cwversions' -e 'pkg/cstest' -e 'pkg/models') -covermode=atomic $(LD_OPTS) -c -o $(CROWDSEC_BIN_COVER) diff --git a/plugins/notifications/dummy/Makefile b/plugins/notifications/dummy/Makefile index edbf047a4..e47c2fab0 100644 --- a/plugins/notifications/dummy/Makefile +++ b/plugins/notifications/dummy/Makefile @@ -14,7 +14,7 @@ GOGET = $(GOCMD) get BINARY_NAME = notification-dummy$(EXT) build: clean - $(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME) + $(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME) clean: @$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR) diff --git a/plugins/notifications/email/Makefile b/plugins/notifications/email/Makefile index 24d76a091..e80b4a70c 100644 --- a/plugins/notifications/email/Makefile +++ b/plugins/notifications/email/Makefile @@ -14,7 +14,7 @@ GOGET = $(GOCMD) get BINARY_NAME = notification-email$(EXT) build: clean - $(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME) + $(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME) clean: @$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR) diff --git a/plugins/notifications/http/Makefile b/plugins/notifications/http/Makefile index 8a15bec6d..8d0592fd3 100644 --- a/plugins/notifications/http/Makefile +++ b/plugins/notifications/http/Makefile @@ -14,7 +14,7 @@ GOGET = $(GOCMD) get BINARY_NAME = notification-http$(EXT) build: clean - $(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME) + $(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME) clean: @$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR) diff --git a/plugins/notifications/slack/Makefile b/plugins/notifications/slack/Makefile index f7ee08ecd..406b6872a 100644 --- a/plugins/notifications/slack/Makefile +++ b/plugins/notifications/slack/Makefile @@ -14,7 +14,7 @@ GOGET = $(GOCMD) get BINARY_NAME = notification-slack$(EXT) build: clean - $(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME) + $(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME) clean: @$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR) diff --git a/plugins/notifications/splunk/Makefile b/plugins/notifications/splunk/Makefile index b52850b83..6a24b5c32 100644 --- a/plugins/notifications/splunk/Makefile +++ b/plugins/notifications/splunk/Makefile @@ -14,7 +14,7 @@ GOGET = $(GOCMD) get BINARY_NAME = notification-splunk$(EXT) build: clean - $(GOBUILD) $(LD_OPTS) -o $(BINARY_NAME) + $(GOBUILD) $(LD_OPTS) $(BUILD_VENDOR_FLAGS) -o $(BINARY_NAME) clean: @$(RM) $(BINARY_NAME) $(WIN_IGNORE_ERR)