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:
parent
713659f449
commit
e0840e2b1c
1 changed files with 4 additions and 5 deletions
|
@ -455,13 +455,12 @@ (define-public chibi-scheme
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue