diff options
author | jlaffaye <jlaffaye@FreeBSD.org> | 2018-08-26 01:26:16 +0800 |
---|---|---|
committer | jlaffaye <jlaffaye@FreeBSD.org> | 2018-08-26 01:26:16 +0800 |
commit | 2cd69d09deb7a5df225831b37dc5d299e20c7868 (patch) | |
tree | 671a49d76f2832820298b790ff047d9731b47130 /Mk | |
parent | 16cae2a6c42e75125cfc282a2d704b629974d09a (diff) | |
download | freebsd-ports-gnome-2cd69d09deb7a5df225831b37dc5d299e20c7868.tar.gz freebsd-ports-gnome-2cd69d09deb7a5df225831b37dc5d299e20c7868.tar.zst freebsd-ports-gnome-2cd69d09deb7a5df225831b37dc5d299e20c7868.zip |
Add GO_BUILDFLAGS variable to Uses/go.mk
PR: 225812
Submitted by: David O'Rourke <dor.bsd@xm0.uk>
Diffstat (limited to '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) |