[Bug 225812] Mk/Uses/go.mk: Add GO_BUILDFLAGS variable
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Feb 10 21:30:42 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225812
Bug ID: 225812
Summary: Mk/Uses/go.mk: Add GO_BUILDFLAGS variable
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Ports Framework
Assignee: portmgr at FreeBSD.org
Reporter: dor.bsd at xm0.uk
CC: freebsd-ports-bugs at FreeBSD.org
Created attachment 190491
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190491&action=edit
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
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list