[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: chibi-scheme: Cross-compile.
From: |
guix-commits |
Subject: |
02/03: gnu: chibi-scheme: Cross-compile. |
Date: |
Thu, 21 Oct 2021 21:35:03 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit e0840e2b1c3c139a826b05adb33563274c14e9d8
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Fri Oct 22 02:12:22 2021 +0200
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.
---
gnu/packages/scheme.scm | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index de56626..544c249 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -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")