aboutsummaryrefslogtreecommitdiffstats
path: root/lang/go/files/bsd.go.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/go/files/bsd.go.mk')
-rw-r--r--lang/go/files/bsd.go.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/go/files/bsd.go.mk b/lang/go/files/bsd.go.mk
index e524bfb9817..18b968f0421 100644
--- a/lang/go/files/bsd.go.mk
+++ b/lang/go/files/bsd.go.mk
@@ -47,7 +47,7 @@ BUILD_DEPENDS+= ${GO_CMD}:${PORTSDIR}/lang/go
GO_ENV+= GOROOT=${GOROOT} \
GOPATH=${WRKDIR} \
GOARCH=${GOARCH} \
- GOOS=freebsd \
+ GOOS=${OPSYS:L} \
CGO_CFLAGS="${CGO_CFLAGS}" \
CGO_LDFLAGS="${CGO_LDFLAGS}"
PLIST_SUB+= GO_LIBDIR=${GO_LIBDIR} \
@@ -57,7 +57,7 @@ PLIST_SUB+= GO_LIBDIR=${GO_LIBDIR} \
.if !target(post-extract)
post-extract:
@${MKDIR} ${GO_WRKSRC:H}
- @${LN} -s ${WRKSRC} ${GO_WRKSRC}
+ @${LN} -sf ${WRKSRC} ${GO_WRKSRC}
.endif
.if !target(do-build)