Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2018 21:30:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 225812] Mk/Uses/go.mk: Add GO_BUILDFLAGS variable
Message-ID:  <bug-225812-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225812

            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@FreeBSD.org
          Reporter: dor.bsd@xm0.uk
                CC: freebsd-ports-bugs@FreeBSD.org

Created attachment 190491
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D190491&action=
=3Dedit
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 exporte=
rs,
I've found myself copying the default Go `do-build` to enable passing of ex=
tra
`-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 alr=
eady
pass in via `CGO_LDFLAGS` and `CGO_CFLAGS`.

-David

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225812-13>