~ chicken-core (chicken-5) e86b10c7a94a5dfb23a02254e3b5ddaee2e2d428
commit e86b10c7a94a5dfb23a02254e3b5ddaee2e2d428 Author: Kooda <kooda@upyum.com> AuthorDate: Wed Jan 23 11:35:49 2019 +0100 Commit: felix <felix@call-with-current-continuation.org> CommitDate: Thu Jan 24 15:09:32 2019 +0100 Make the default linkage of egg programs static when in a static CHICKEN build Signed-off-by: felix <felix@call-with-current-continuation.org> diff --git a/egg-compile.scm b/egg-compile.scm index c744592b..ba4ed67c 100644 --- a/egg-compile.scm +++ b/egg-compile.scm @@ -30,11 +30,13 @@ (define default-dynamic-program-link-options '()) (define default-static-extension-link-options '()) (define default-dynamic-extension-link-options '()) -(define default-program-linkage '(dynamic)) (define default-static-compilation-options '("-O2" "-d1")) (define default-dynamic-compilation-options '("-O2" "-d1")) (define default-import-library-compilation-options '("-O2" "-d0")) +(define default-program-linkage + (if staticbuild '(static) '(dynamic))) + (define default-extension-linkage (if staticbuild '(static) '(static dynamic)))Trap