~ruther/guix-local

68d15fcf20feddb72f5c2d2ff7d754dcc4f409df — Sarah Morgensen 5 years ago 51bf893
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>
1 files changed, 2 insertions(+), 2 deletions(-)

M gnu/packages/gcc.scm
M gnu/packages/gcc.scm => gnu/packages/gcc.scm +2 -2
@@ 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"