From 91918e94056c17aca2217db611e69265b8b7c8b9 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 18 Dec 2021 20:36:55 +0100 Subject: [PATCH] gnu: gcl: Avoid referencing GCC from the top-level. * gnu/packages/lisp.scm (gcl)[arguments]: Use SEARCH-INPUT-FILE instead of referencing the GCC variable. --- gnu/packages/lisp.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 8c1a5f90a0..585bf19baa 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -158,9 +158,9 @@ (define-public gcl #$(this-package-input "libtirpc") "/lib") "LIBS=-ltirpc") - #:make-flags ,#~(list - (string-append "GCL_CC=" #$gcc "/bin/gcc") - (string-append "CC="#$gcc "/bin/gcc")) + #:make-flags ,#~(let ((gcc (search-input-file %build-inputs "/bin/gcc"))) + (list (string-append "GCL_CC=" gcc) + (string-append "CC=" gcc))) #:phases (modify-phases %standard-phases (add-after 'unpack 'realpath-workaround