pkgsrc/lang/go112/patches/patch-src_cmd_dist_util.go
bsiegert 68d32f31e2 Add a package for Go 1.12.
Some of the highlights include opt-in support for TLS 1.3, improved modules
support (in preparation for being the default in Go 1.13), support for
windows/arm, and improved macOS & iOS forwards compatibility.

See https://blog.golang.org/go1.12.

In pkgsrc, this is _not_ the default version for Go package builds just yet.
2019-03-09 09:29:30 +00:00

16 lines
535 B
Go

$NetBSD: patch-src_cmd_dist_util.go,v 1.1 2019/03/09 09:29:30 bsiegert Exp $
--- src/cmd/dist/util.go.orig 2017-02-16 19:12:22.000000000 +0000
+++ src/cmd/dist/util.go
@@ -531,6 +531,11 @@ func xgetgoarm() string {
// sense to auto-detect the setting.
return "7"
}
+ if goos == "netbsd" {
+ // NetBSD go/arm support only earmv6hf or earmv7hf now.
+ // Any armv5 (or before) devices cannot work.
+ return "6"
+ }
if gohostarch != "arm" || goos != gohostos {
// Conservative default for cross-compilation.
return "5"