pkgsrc/lang/go/bootstrap.mk
bacon 78607c9a67 lang/go: Fix bootstrap on macOS Monterrey
Darwin 12 eliminated a kernel feature needed by go 1.10 and earlier.
This patch makes Darwin 12 boostrap using go-bin rather than go14.
2022-03-09 15:15:59 +00:00

11 lines
406 B
Makefile

# $NetBSD: bootstrap.mk,v 1.8 2022/03/09 15:15:59 bacon Exp $
.if !defined(GOROOT_BOOTSTRAP) || !exists(${GOROOT_BOOTSTRAP}/bin/go)
. if ${MACHINE_ARCH} == "aarch64" || ${OPSYS} == "Darwin" && ${OPSYS_VERSION} >= 120000
BUILD_DEPENDS+= go-bin-[0-9]*:../../lang/go-bin
GOROOT_BOOTSTRAP= ${PREFIX}/go-bin
. else
BUILD_DEPENDS+= go14-1.4*:../../lang/go14
GOROOT_BOOTSTRAP= ${PREFIX}/go14
. endif
.endif