mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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 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:
parent
0e66a66864
commit
2818c66e93
1 changed files with 5 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue