diff options
author | Julien Laffaye <jlaffaye@FreeBSD.org> | 2018-08-25 17:26:16 +0000 |
---|---|---|
committer | Julien Laffaye <jlaffaye@FreeBSD.org> | 2018-08-25 17:26:16 +0000 |
commit | 6b14c2369b27eb4b0781fb3aaea986cfdcfc599e (patch) | |
tree | 671a49d76f2832820298b790ff047d9731b47130 /Mk/Uses/go.mk | |
parent | - Update to 3.6.2 (diff) |
Add GO_BUILDFLAGS variable to Uses/go.mk
PR: 225812
Submitted by: David O'Rourke <dor.bsd@xm0.uk>
Notes
Notes:
svn path=/head/; revision=478076
Diffstat (limited to 'Mk/Uses/go.mk')
-rw-r--r-- | Mk/Uses/go.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk index d526ee61a43d..c50eeac63761 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 @@ -76,7 +80,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) |