~ chicken-core (chicken-5) add125c47a08c2afa371ae2d6d3b538325a42a43
commit add125c47a08c2afa371ae2d6d3b538325a42a43
Author: Felix <bunny351@gmail.com>
AuthorDate: Fri Oct 30 23:54:59 2009 +0100
Commit: Felix <bunny351@gmail.com>
CommitDate: Fri Oct 30 23:54:59 2009 +0100
-setup-mode was not switched off for cross-chicken in setup-api
diff --git a/setup-api.scm b/setup-api.scm
index 021dbb0f..d76c01b2 100644
--- a/setup-api.scm
+++ b/setup-api.scm
@@ -218,7 +218,10 @@
(make-pathname
*chicken-bin-path*
(cdr (assoc prg *installed-executables*))))
- "-feature" "compiling-extension" "-setup-mode"
+ "-feature" "compiling-extension"
+ (if (and (feature? #:cross-chicken)
+ (not (host-extension)))
+ "" "-setup-mode")
(if (keep-intermediates) "-k" "")
(if (host-extension) "-host" "")
*csc-options*)
Trap