$OpenBSD: patch-src_internal_testenv_testenv_go,v 1.2 2021/08/27 18:33:27 jsing Exp $

Index: src/internal/testenv/testenv.go
--- src/internal/testenv/testenv.go.orig
+++ src/internal/testenv/testenv.go
@@ -198,13 +198,11 @@ func MustHaveCGO(t testing.TB) {
 func CanInternalLink() bool {
 	switch runtime.GOOS {
 	case "android":
-		if runtime.GOARCH != "arm64" {
-			return false
-		}
+		return runtime.GOARCH == "arm64"
 	case "ios":
-		if runtime.GOARCH == "arm64" {
-			return false
-		}
+		return runtime.GOARCH != "arm64"
+	case "openbsd":
+		return runtime.GOARCH != "mips64"
 	}
 	return true
 }
