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.
This commit is contained in:
Marius Bakke 2021-12-18 20:36:55 +01:00
parent c0c9912b44
commit 91918e9405
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -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