Date: Sat, 25 Aug 2018 17:26:16 +0000 (UTC) From: Julien Laffaye <jlaffaye@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478076 - head/Mk/Uses Message-ID: <201808251726.w7PHQGe6038178@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jlaffaye Date: Sat Aug 25 17:26:16 2018 New Revision: 478076 URL: https://svnweb.freebsd.org/changeset/ports/478076 Log: Add GO_BUILDFLAGS variable to Uses/go.mk PR: 225812 Submitted by: David O'Rourke <dor.bsd@xm0.uk> Modified: head/Mk/Uses/go.mk Modified: head/Mk/Uses/go.mk ============================================================================== --- head/Mk/Uses/go.mk Sat Aug 25 16:28:18 2018 (r478075) +++ head/Mk/Uses/go.mk Sat Aug 25 17:26:16 2018 (r478076) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808251726.w7PHQGe6038178>