Blame SOURCES/disable_static_tests_part2.patch

e9e180
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
e9e180
index da5b179..6a772df 100644
e9e180
--- a/src/cmd/dist/test.go
e9e180
+++ b/src/cmd/dist/test.go
e9e180
@@ -1247,18 +1247,20 @@ func (t *tester) cgoTest(dt *distTest) error {
e9e180
 				fmt.Println("No support for static linking found (lacks libc.a?), skip cgo static linking test.")
e9e180
 			} else {
e9e180
 				if goos != "android" {
e9e180
-					t.addCmd(dt, "misc/cgo/testtls", t.goTest(), "-ldflags", `-linkmode=external -extldflags "-static -pthread"`, ".")
e9e180
+					t.addCmd(dt, "misc/cgo/testtls", t.goTest(), "-ldflags", `-linkmode=external -extldflags "-static -pthread"`, "-tags=no_openssl")
e9e180
 				}
e9e180
 				t.addCmd(dt, "misc/cgo/nocgo", t.goTest(), ".")
e9e180
 				t.addCmd(dt, "misc/cgo/nocgo", t.goTest(), "-ldflags", `-linkmode=external`, ".")
e9e180
 				if goos != "android" {
e9e180
-					t.addCmd(dt, "misc/cgo/nocgo", t.goTest(), "-ldflags", `-linkmode=external -extldflags "-static -pthread"`, ".")
e9e180
+					t.addCmd(dt, "misc/cgo/nocgo", t.goTest(), "-ldflags", `-linkmode=external -extldflags "-static -pthread"`, "-tags=no_openssl")
e9e180
+					/*
e9e180
 					t.addCmd(dt, "misc/cgo/test", t.goTest(), "-tags=static", "-ldflags", `-linkmode=external -extldflags "-static -pthread"`, ".")
e9e180
 					// -static in CGO_LDFLAGS triggers a different code path
e9e180
 					// than -static in -extldflags, so test both.
e9e180
 					// See issue #16651.
e9e180
 					cmd := t.addCmd(dt, "misc/cgo/test", t.goTest(), "-tags=static", ".")
e9e180
 					setEnv(cmd, "CGO_LDFLAGS", "-static -pthread")
e9e180
+					*/
e9e180
 				}
e9e180
 			}
e9e180
 
e9e180
@@ -1268,7 +1270,7 @@ func (t *tester) cgoTest(dt *distTest) error {
e9e180
 					t.addCmd(dt, "misc/cgo/test", t.goTest(), "-buildmode=pie", "-ldflags=-linkmode=internal", "-tags=internal,internal_pie", ".")
e9e180
 				}
e9e180
 				t.addCmd(dt, "misc/cgo/testtls", t.goTest(), "-buildmode=pie", ".")
e9e180
-				t.addCmd(dt, "misc/cgo/nocgo", t.goTest(), "-buildmode=pie", ".")
e9e180
+				t.addCmd(dt, "misc/cgo/nocgo", t.goTest(), "-buildmode=pie", "-tags=no_openssl")
e9e180
 			}
e9e180
 		}
e9e180
 	}