Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / go / remove-test-pie-1.15.patch
blobf00685feba904c00584f2e65ba4428af2658a7b3
1 diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
2 index e1cd4965c3..66bf980fc6 100644
3 --- a/src/cmd/dist/test.go
4 +++ b/src/cmd/dist/test.go
5 @@ -584,29 +584,6 @@ func (t *tester) registerTests() {
6 })
9 - // Test internal linking of PIE binaries where it is supported.
10 - if t.internalLinkPIE() {
11 - t.tests = append(t.tests, distTest{
12 - name: "pie_internal",
13 - heading: "internal linking of -buildmode=pie",
14 - fn: func(dt *distTest) error {
15 - t.addCmd(dt, "src", t.goTest(), "reflect", "-buildmode=pie", "-ldflags=-linkmode=internal", t.timeout(60))
16 - return nil
17 - },
18 - })
19 - // Also test a cgo package.
20 - if t.cgoEnabled && t.internalLink() {
21 - t.tests = append(t.tests, distTest{
22 - name: "pie_internal_cgo",
23 - heading: "internal linking of -buildmode=pie",
24 - fn: func(dt *distTest) error {
25 - t.addCmd(dt, "src", t.goTest(), "os/user", "-buildmode=pie", "-ldflags=-linkmode=internal", t.timeout(60))
26 - return nil
27 - },
28 - })
29 - }
30 - }
32 // sync tests
33 if goos != "js" { // js doesn't support -cpu=10
34 t.tests = append(t.tests, distTest{