gnu: chibi-scheme: Cross-compile.

* gnu/packages/scheme.scm (chibi-scheme)[arguments]: Set CC to
CC-FOR-TARGET in #:make-flags rather than hard-coding it to "gcc" as an
environment variable.
This commit is contained in:
Tobias Geerinckx-Rice 2021-10-22 02:12:22 +02:00
parent 713659f449
commit e0840e2b1c
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 4 additions and 5 deletions

View File

@ -455,13 +455,12 @@ mixed.")
(base32 "0yhmj0lws3r3bl4ivs31dhlzxqc7f0dinixi904mraz1fmrg3w7f"))))
(build-system gnu-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'set-cc
(lambda _
(setenv "CC" "gcc"))))
`(#:phases
(modify-phases %standard-phases
(delete 'configure)) ; no configure script
#:make-flags (let ((out (assoc-ref %outputs "out")))
(list (string-append "PREFIX=" out)
(string-append "CC=" ,(cc-for-target))
(string-append "LDFLAGS=-Wl,-rpath=" out "/lib")))
#:test-target "test"))
(synopsis "Small embeddable Scheme implementation")