From 9ec3211dab9f3097f8eff800ac0f90bb4f7f4800 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Thu, 6 Sep 2018 16:48:34 +0200 Subject: [PATCH] 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. --- csc.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -- 2.11.0