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`. -David
A commit references this bug: Author: jlaffaye Date: Sat Aug 25 17:26:16 UTC 2018 New revision: 478076 URL: https://svnweb.freebsd.org/changeset/ports/478076 Log: Add GO_BUILDFLAGS variable to Uses/go.mk PR: 225812 Submitted by: David O'Rourke <dor.bsd@xm0.uk> Changes: head/Mk/Uses/go.mk
Committed, thanks!