~ chicken-core (chicken-5) 8b91505af51bb2589aef786e9d2fe12496c466cd
commit 8b91505af51bb2589aef786e9d2fe12496c466cd
Author: felix <felix@call-with-current-continuation.org>
AuthorDate: Sat Dec 14 13:14:58 2019 +0100
Commit: Kooda <kooda@upyum.com>
CommitDate: Wed Dec 18 12:29:30 2019 +0100
Compile c-object components with proper flags
Egg components of type c-object should be compiled with the same C compiler flags
as C files generated by chicken, but currently the "-s" option for shared
objects is not given to c-objects when compiled in dynamic mode. This patch
adds the flag, fixing #1659.
This shortcoming was reported by Thomas Chust.
Signed-off-by: Kooda <kooda@upyum.com>
diff --git a/egg-compile.scm b/egg-compile.scm
index c18c8c14..ece0f190 100644
--- a/egg-compile.scm
+++ b/egg-compile.scm
@@ -799,7 +799,7 @@
cmd
(if (eq? mode 'host) " -host" "")
" -setup-mode -I " srcdir
- " -c -C -I" srcdir
+ " -s -c -C -I" srcdir
(arglist opts platform)
" " src
" -o " out)
Trap