~ chicken-core (chicken-5) 6e76b7e622ffcbdb96fb9f511e3adeed8ce522ae


commit 6e76b7e622ffcbdb96fb9f511e3adeed8ce522ae
Author:     Peter Bex <peter@codeyellow.nl>
AuthorDate: Thu Sep 6 16:48:34 2018 +0200
Commit:     Peter Bex <peter@more-magic.net>
CommitDate: Thu Sep 6 20:23:38 2018 +0200

    Fix build on Mac OS
    
    We would cons a string containing two arguments onto the link-options,
    but now the quoting has been corrected that no longer works, it is
    seen as one option.  Instead, we append a list with the options.

diff --git a/csc.scm b/csc.scm
index 454a6373..95f504d3 100644
--- a/csc.scm
+++ b/csc.scm
@@ -529,9 +529,10 @@ EOF
     (set! translate-options (cons* "-feature" "chicken-compile-shared" translate-options))
     (set! compile-options (append pic-options '("-DC_SHARED") compile-options))
     (set! link-options
-      (cons (cond
-             (osx (if lib "-dynamiclib" "-bundle -headerpad_max_install_names"))
-             (else "-shared")) link-options))
+      (append
+	(cond
+          (osx (if lib '("-dynamiclib") '("-bundle" "-headerpad_max_install_names")))
+          (else '("-shared"))) link-options))
     (set! shared #t) )
 
   (define (use-private-repository)
Trap