Blame SOURCES/disable_static_tests_part2.patch

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