summaryrefslogtreecommitdiff
path: root/repo/go/tests-unset-GCCGO.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repo/go/tests-unset-GCCGO.patch')
-rw-r--r--repo/go/tests-unset-GCCGO.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/repo/go/tests-unset-GCCGO.patch b/repo/go/tests-unset-GCCGO.patch
new file mode 100644
index 0000000..b69450b
--- /dev/null
+++ b/repo/go/tests-unset-GCCGO.patch
@@ -0,0 +1,16 @@
+We skip many gccgo tests by setting GCCGO to a bogus value. However,
+this particular test doesn't properly handle a non-existing $GCCGO
+hence we unset the environment variable here.
+
+diff -upr go.orig/src/cmd/go/testdata/script/gccgo_link_c.txt go/src/cmd/go/testdata/script/gccgo_link_c.txt
+--- go.orig/src/cmd/go/testdata/script/gccgo_link_c.txt 2022-09-30 10:58:07.524516646 +0200
++++ go/src/cmd/go/testdata/script/gccgo_link_c.txt 2022-09-30 10:58:29.441202925 +0200
+@@ -4,6 +4,8 @@
+ [!cgo] skip
+ [!exec:gccgo] skip
+
++env GCCGO=
++
+ go build -n -compiler gccgo
+ stderr 'gccgo.*\-L [^ ]*alibpath \-lalib' # make sure that Go-inline "#cgo LDFLAGS:" ("-L alibpath -lalib") passed to gccgo linking stage
+