chore: Add build tags to buildbin Makefile target (#14034)

This commit is contained in:
Joshua Powers 2023-10-04 07:23:00 -06:00 committed by GitHub
parent aa2990d792
commit 72fad0ed4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ install: $(buildbin)
$(buildbin): $(buildbin):
echo $(GOOS) echo $(GOOS)
@mkdir -pv $(dir $@) @mkdir -pv $(dir $@)
CGO_ENABLED=0 go build -o $(dir $@) -ldflags "$(LDFLAGS)" ./cmd/telegraf CGO_ENABLED=0 go build -o $(dir $@) -tags "$(BUILDTAGS)" -ldflags "$(LDFLAGS)" ./cmd/telegraf
# Define packages Telegraf supports, organized by architecture with a rule to echo the list to limit include_packages # Define packages Telegraf supports, organized by architecture with a rule to echo the list to limit include_packages
# e.g. make package include_packages="$(make amd64)" # e.g. make package include_packages="$(make amd64)"