~ chicken-core (chicken-5) 7a6a772243a6bf5d39b0a79d7ad4b847c29b8b17
commit 7a6a772243a6bf5d39b0a79d7ad4b847c29b8b17
Author: Evan Hanson <evhan@foldling.org>
AuthorDate: Sat Mar 11 20:20:30 2017 +1300
Commit: Evan Hanson <evhan@foldling.org>
CommitDate: Sat Mar 11 23:23:51 2017 +1300
Emit link file based on output file name rather than input source
The `install-static-extension` procedure expects link files to be named
based on the compiled filename of the extension, not the source file
that was compiled, so make csc call chicken with a "-link-emit-file"
argument based on the output filename.
diff --git a/csc.scm b/csc.scm
index 2a5c2d4c..8e406ee3 100644
--- a/csc.scm
+++ b/csc.scm
@@ -849,7 +849,7 @@ EOF
translate-options
(if static
(list "-emit-link-file"
- (pathname-replace-extension f "link"))
+ (pathname-replace-extension fc "link"))
'())
(cond (cpp-mode '("-feature" "chicken-scheme-to-c++"))
(objc-mode '("-feature" "chicken-scheme-to-objc"))
Trap