diff options
author | maya <maya@pkgsrc.org> | 2020-05-08 00:49:59 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2020-05-08 00:49:59 +0000 |
commit | 77a817f5f7d0e65bf5d0af93f21e45b29a7f9f08 (patch) | |
tree | 6eaf31ec575dbd9743d8acbb396c5c2594e942d1 /lang/go114 | |
parent | 52584c14a4807f6a86bf33404b6648320c24f892 (diff) | |
download | pkgsrc-77a817f5f7d0e65bf5d0af93f21e45b29a7f9f08.tar.gz |
go113, go114: when bootstrapped using a modules capable Go bootstrap,
put the cache in the work directory. Helps bulk building on netbsd/aarch64.
Diffstat (limited to 'lang/go114')
-rw-r--r-- | lang/go114/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/go114/Makefile b/lang/go114/Makefile index fb23831e0b7..50789b1f90e 100644 --- a/lang/go114/Makefile +++ b/lang/go114/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2020/05/01 14:09:15 tnn Exp $ +# $NetBSD: Makefile,v 1.3 2020/05/08 00:49:59 maya Exp $ .include "../../lang/go/version.mk" .include "../../lang/go/bootstrap.mk" @@ -82,7 +82,13 @@ post-extract: ${RM} -r -f ${WRKSRC}/test/fixedbugs/issue27836* do-build: - cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} ${GOOPT} ${BASH} ./make.bash + cd ${WRKSRC}/src && \ + env \ + GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} \ + GOROOT_FINAL=${GOROOT_FINAL:Q} \ + ${GOOPT} \ + GOCACHE=${WRKDIR}/.cache/go-build \ + ${BASH} ./make.bash # for RELRO build: # cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} GO_LDFLAGS="-buildmode=pie" ${GOOPT} ${BASH} ./make.bash |