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>
parent
0e66a66864
commit
2818c66e93
|
@ -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"))
|
||||
|
|
Reference in New Issue