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:
parent
51bf893e53
commit
68d15fcf20
1 changed files with 2 additions and 2 deletions
|
@ -871,9 +871,9 @@ provides the GNU compiler for the Go programming language.")
|
||||||
(tooldir (dirname (car (find-files exedir "^cgo$")))))
|
(tooldir (dirname (car (find-files exedir "^cgo$")))))
|
||||||
(wrap-program (string-append out "/bin/go")
|
(wrap-program (string-append out "/bin/go")
|
||||||
`("GCCGOTOOLDIR" =
|
`("GCCGOTOOLDIR" =
|
||||||
(,(string-append "${GCCGOTOOLDIR-" tooldir "}")))
|
(,(string-append "${GCCGOTOOLDIR:-" tooldir "}")))
|
||||||
`("GOROOT" =
|
`("GOROOT" =
|
||||||
(,(string-append "${GOROOT-" out "}")))))))
|
(,(string-append "${GOROOT:-" out "}")))))))
|
||||||
(add-before 'configure 'fix-gotools-runpath
|
(add-before 'configure 'fix-gotools-runpath
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "gotools/Makefile.in"
|
(substitute* "gotools/Makefile.in"
|
||||||
|
|
Reference in a new issue