3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: go-1.14: Fix test failure with GCC 9+.

With GCC 9+, go-1.14 fails a test when the gold linker is not
available (https://github.com/golang/go/issues/39157). Backport the fix
for that from https://github.com/golang/go/commit/4ec4a79.

* gnu/packages/golang.scm (go-1.14)[arguments]<#:phases>{prebuild}:
Fix test failure with GCC 9+.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Sarah Morgensen 2021-08-06 14:40:17 -07:00 committed by Efraim Flashner
parent 0e66a66864
commit 2818c66e93
Signed by untrusted user: efraim
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1248,6 +1248,11 @@ in the style of communicating sequential processes (@dfn{CSP}).")
(("/bin/pwd") (which "pwd"))
(("/bin/sh") (which "sh")))
;; Backport fix for go-1.14 with GCC 9+
;; https://github.com/golang/go/issues/39157
(substitute* "cmd/go/note_test.go"
(("cannot find 'ld'") "cannot find [']ld[']"))
;; Add libgcc to runpath
(substitute* "cmd/link/internal/ld/lib.go"
(("!rpath.set") "true"))