FreeBSD Bugzilla – Attachment 190491 Details for
Bug 225812
Mk/Uses/go.mk: Add GO_BUILDFLAGS variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
go.mk GO_BUILDFLAGS diff
go.mk-buildflags.diff (text/plain), 885 bytes, created by
David O'Rourke
on 2018-02-10 21:30:41 UTC
(
hide
)
Description:
go.mk GO_BUILDFLAGS diff
Filename:
MIME Type:
Creator:
David O'Rourke
Created:
2018-02-10 21:30:41 UTC
Size:
885 bytes
patch
obsolete
>diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk >index eb63d03e2bee..8098fe4e1f85 100644 >--- a/Mk/Uses/go.mk >+++ b/Mk/Uses/go.mk >@@ -24,6 +24,9 @@ > # Addional LDFLAGS variables to be passed to the C compiler by the `go` > # command > # >+# GO_BUILDFLAGS >+# Additional build arguments to be passed to the `go install` command >+# > # MAINTAINER: jlaffaye@FreeBSD.org > > .if !defined(_INCLUDE_USES_GO_MK) >@@ -40,6 +43,7 @@ GOOBJ= 6 > # Settable variables > GO_PKGNAME?= ${PORTNAME} > GO_TARGET?= ${GO_PKGNAME} >+GO_BUILDFLAGS+= -v > CGO_CFLAGS+= -I${LOCALBASE}/include > CGO_LDFLAGS+= -L${LOCALBASE}/lib > >@@ -70,7 +74,8 @@ post-extract: > > .if !target(do-build) > do-build: >- @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET}) >+ @(cd ${GO_WRKSRC}; \ >+ ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS} ${GO_TARGET}) > .endif > > .if !target(do-install)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225812
: 190491