mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 06:42:14 -05: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:
parent
0e66a66864
commit
2818c66e93
1 changed files with 5 additions and 0 deletions
|
@ -1248,6 +1248,11 @@ (define-public go-1.14
|
|||
(("/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…
Reference in a new issue