summaryrefslogtreecommitdiff
path: root/lang/go/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/go/Makefile')
-rw-r--r--lang/go/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/go/Makefile b/lang/go/Makefile
index 124bb82f83d..0f2a693414d 100644
--- a/lang/go/Makefile
+++ b/lang/go/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2014/06/22 14:50:47 bsiegert Exp $
+# $NetBSD: Makefile,v 1.15 2014/07/07 16:44:18 jperkin Exp $
VERSION= 1.3
DISTNAME= go${VERSION}.src
@@ -35,6 +35,14 @@ GO_COMPILER= 5
PLIST_SUBST+= GO_PLATFORM=${LOWER_OPSYS:Q}_${GOARCH:Q} GOARCH=${GOARCH:Q}
PLIST_SUBST+= GO_COMPILER=${GO_COMPILER:Q}
+PLIST_VARS+= cgo zsyscall
+
+.if ${OPSYS} == "SunOS"
+PLIST.zsyscall= yes
+.else
+PLIST.cgo= yes
+.endif
+
# cgo compiles under TMPDIR
TMPDIR?= /tmp
BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR}