~ chicken-core (chicken-5) 887601250b1801c3fb77cfe04915760252852ae0
commit 887601250b1801c3fb77cfe04915760252852ae0
Author: unknown <felix@.(none)>
AuthorDate: Thu Oct 29 09:26:34 2009 +0100
Commit: unknown <felix@.(none)>
CommitDate: Thu Oct 29 09:26:34 2009 +0100
do not run in -setup-mode when cross-compiling an extension
diff --git a/chicken-install.scm b/chicken-install.scm
index 3ad7723a..0763e6ae 100644
--- a/chicken-install.scm
+++ b/chicken-install.scm
@@ -288,7 +288,12 @@
(define (make-install-command e+d+v)
(conc
*csi*
- " -bnq -setup-mode -e \"(require-library setup-api)\" -e \"(import setup-api)\""
+ " -bnq "
+ (if (and (feature? #:cross-chicken) ; disable -setup-mode when cross-compiling,
+ (not *host-extension*)) ; host-repo must always take precedence
+ ""
+ "-setup-mode ")
+ "-e \"(require-library setup-api)\" -e \"(import setup-api)\""
(sprintf " -e \"(extension-name-and-version '(\\\"~a\\\" \\\"~a\\\"))\"" (car e+d+v) (caddr e+d+v))
(if (sudo-install) " -e \"(sudo-install #t)\"" "")
(if *keep* " -e \"(keep-intermediates #t)\"" "")
Trap