me
/
guix
Archived
1
0
Fork 0

gnu: gccgo-12: Fix building on riscv64-linux.

* gnu/packages/gcc.scm (make-gccgo)[arguments]: When building gccgo-12
for riscv64-linux don't add a phase to adjust the order of libgo
dependencies.

Change-Id: I600c744ce33ad802a5c466c19df41dcbb29a2be0
master
Efraim Flashner 2024-05-30 12:10:17 +03:00
parent fce707186a
commit 86cab5c4bc
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 6 additions and 1 deletions

View File

@ -1214,7 +1214,12 @@ provides the GNU compiler for the Go programming language.")
(substitute-keyword-arguments (package-arguments gccgo)
((#:phases phases)
#~(modify-phases #$phases
#$@(if (version>=? (package-version gccgo) "12.0")
#$@(if (and (version>=? (package-version gccgo) "12.0")
;; This somehow breaks gccgo@12 on riscv64-linux.
(not (and (target-riscv64?)
(string=? (version-prefix
(package-version gccgo) 1)
"12"))))
#~((add-after 'unpack 'adjust-libgo-dependencies
(lambda _
(substitute* "Makefile.in"