~ruther/guix-local

e0840e2b1c3c139a826b05adb33563274c14e9d8 — Tobias Geerinckx-Rice 5 years ago 713659f
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.
1 files changed, 4 insertions(+), 5 deletions(-)

M gnu/packages/scheme.scm
M gnu/packages/scheme.scm => gnu/packages/scheme.scm +4 -5
@@ 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")