1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: make-gccgo: Override empty GOROOT/GCCGOTOOLDIR

gnu/packages/gcc.scm (make-gccgo)[arguments]: Set tool paths
(GOROOT and GCCGOTOOLDIR) even if they are already set to "".

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Sarah Morgensen
2021-07-06 00:30:32 -07:00
committed by Efraim Flashner
parent 51bf893e53
commit 68d15fcf20

View File

@@ -871,9 +871,9 @@ provides the GNU compiler for the Go programming language.")
(tooldir (dirname (car (find-files exedir "^cgo$")))))
(wrap-program (string-append out "/bin/go")
`("GCCGOTOOLDIR" =
(,(string-append "${GCCGOTOOLDIR-" tooldir "}")))
(,(string-append "${GCCGOTOOLDIR:-" tooldir "}")))
`("GOROOT" =
(,(string-append "${GOROOT-" out "}")))))))
(,(string-append "${GOROOT:-" out "}")))))))
(add-before 'configure 'fix-gotools-runpath
(lambda _
(substitute* "gotools/Makefile.in"