Build releases with -w -s ldflags

This commit is contained in:
Daniel Nelson
2017-08-07 15:47:20 -07:00
parent 75e6ebcf93
commit 1fb5373962
2 changed files with 5 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ telegraf:
go build -o $(TELEGRAF) -ldflags "$(LDFLAGS)" ./cmd/telegraf/telegraf.go
go-install:
go install -ldflags "$(LDFLAGS)" ./cmd/telegraf
go install -ldflags "-w -s $(LDFLAGS)" ./cmd/telegraf
install: telegraf
mkdir -p $(DESTDIR)$(PREFIX)/bin/