Created attachment 190491 [details]
go.mk GO_BUILDFLAGS diff
This diff adds a `GO_BUILDFLAGS` variable to `Mk/Uses/go.mk` for passing additional build flags (go help build) to the `go install` command.
I'm proposing this change since while working on Prometheus and its exporters, I've found myself copying the default Go `do-build` to enable passing of extra `-ldflags` to `go install`. Other arbitrary flags are also passable via this variable.
Note that these flags and arguments are different from the flags we can already pass in via `CGO_LDFLAGS` and `CGO_CFLAGS`.
A commit references this bug:
Date: Sat Aug 25 17:26:16 UTC 2018
New revision: 478076
Add GO_BUILDFLAGS variable to Uses/go.mk
Submitted by: David O'Rourke <firstname.lastname@example.org>