summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2015-12-29 21:47:48 +0000
committerbsiegert <bsiegert@pkgsrc.org>2015-12-29 21:47:48 +0000
commit849112c23f03d893837509c34bf1612ef17a7a30 (patch)
treea0e983eb305b5c0b6c9c0a36102c6e8f10b935bb /lang
parent4488086de0c1c3725f048338300f83383dce64dd (diff)
downloadpkgsrc-849112c23f03d893837509c34bf1612ef17a7a30.tar.gz
Real buildlink support for Go, hacked with wiz@.
Go packages now define a set of files to buildlink in their buildlink3.mk. go-packages.mk no longer looks in ${PREFIX}/gopkg during the build. This should also fix the spurious issues with rebuilds of .a files during bulk builds of Go packages.
Diffstat (limited to 'lang')
-rw-r--r--lang/go/go-package.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/go/go-package.mk b/lang/go/go-package.mk
index 7bdf3ccc701..a6be537d3a5 100644
--- a/lang/go/go-package.mk
+++ b/lang/go/go-package.mk
@@ -1,4 +1,4 @@
-# $NetBSD: go-package.mk,v 1.6 2015/12/27 19:41:10 wiz Exp $
+# $NetBSD: go-package.mk,v 1.7 2015/12/29 21:47:48 bsiegert Exp $
#
# This file implements common logic for compiling Go programs in pkgsrc.
# The compiled Go code is tied to a specific compiler version, and the
@@ -61,7 +61,7 @@ post-extract:
${MV} ${WRKDIR}/`basename ${GO_DIST_BASE}`/* ${WRKSRC}
do-build:
- env GOPATH=${WRKDIR}:${PREFIX}/gopkg go install -v ${GO_BUILD_PATTERN}
+ env GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg go install -v ${GO_BUILD_PATTERN}
do-install:
-cd ${WRKDIR} && [ -d bin ] && ${PAX} -rw bin ${DESTDIR}${PREFIX}