mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 00:52:55 -05:00
gnu: go-1.18: Adjust patch-gcclib phase.
* gnu/packages/golang.scm (go-1.18)[arguments]: Adjust the custom 'patch-gcc:lib phase for changes in the source code.
This commit is contained in:
parent
4e9c9a63cc
commit
8a17609dd0
1 changed files with 21 additions and 23 deletions
|
@ -864,9 +864,8 @@ (define-public go-1.18
|
||||||
(substitute-keyword-arguments (package-arguments go-1.17)
|
(substitute-keyword-arguments (package-arguments go-1.17)
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
(delete 'adjust-test-suite)
|
;; See the platforms using this phase in go-1.17.
|
||||||
,@(if (or (target-arm?) (target-ppc64le?))
|
(replace 'patch-gcc:lib
|
||||||
'((replace 'patch-gcc:lib
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")))
|
(let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")))
|
||||||
;; Add libgcc to runpath
|
;; Add libgcc to runpath
|
||||||
|
@ -885,8 +884,7 @@ (define-public go-1.18
|
||||||
(string-append
|
(string-append
|
||||||
"ldflags, err := setextld(ldflags, compiler)\n"
|
"ldflags, err := setextld(ldflags, compiler)\n"
|
||||||
"ldflags = append(ldflags, \"-r\")\n"
|
"ldflags = append(ldflags, \"-r\")\n"
|
||||||
"ldflags = append(ldflags, \"" gcclib "\")\n")))))))
|
"ldflags = append(ldflags, \"" gcclib "\")\n"))))))))))))
|
||||||
'())))))))
|
|
||||||
|
|
||||||
(define-public go-1.19
|
(define-public go-1.19
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue