Blame SOURCES/disable_static_tests_part2.patch

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