~ chicken-core (chicken-5) 4f4c0205bd5ababe36c287dc77938410198779de


commit 4f4c0205bd5ababe36c287dc77938410198779de
Author:     Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Fri Oct 3 19:32:35 2025 +0200
Commit:     felix <felix@call-with-current-continuation.org>
CommitDate: Sat Oct 4 22:42:12 2025 +0200

    csc.scm: Make linker command line compatible with tcc
    
    Fixes the following tcc error when linking:
    
      tcc: error: library '' not found
    
    caused by the way csc assembles the command line: '-l' 'chicken'
    (issue introduced in 860f8d764).
    
    Signed-off-by: felix <felix@call-with-current-continuation.org>

diff --git a/csc.scm b/csc.scm
index 099cde9b..90f95d4f 100644
--- a/csc.scm
+++ b/csc.scm
@@ -230,7 +230,7 @@
   (list (default-library)))
 
 (define (shared-library-files)
-  (list "-l" (if host-mode INSTALL_LIB_NAME TARGET_LIB_NAME)))
+  (list (string-append "-l" (if host-mode INSTALL_LIB_NAME TARGET_LIB_NAME))))
 
 (define translate-options '())
 
Trap