~ chicken-core (chicken-5) f3d44a918b13b958032b4abd2e4031a450a7758a
commit f3d44a918b13b958032b4abd2e4031a450a7758a Author: felix <felix@call-with-current-continuation.org> AuthorDate: Thu Sep 7 13:57:51 2017 +0200 Commit: Kooda <kooda@upyum.com> CommitDate: Fri Sep 8 17:50:32 2017 +0200 When compiling static extensions, use a different name for static .o files to avoid collision with .o files for the dynamically linked extension. Signed-off-by: Kooda <kooda@upyum.com> diff --git a/egg-compile.scm b/egg-compile.scm index 6e6810a2..5ed16c46 100644 --- a/egg-compile.scm +++ b/egg-compile.scm @@ -428,6 +428,7 @@ default-static-compilation-options options)) (out (quotearg (target-file (conc sname + ".static" (object-extension platform)) mode))) (src (quotearg (or ssname (conc sname ".scm"))))) @@ -550,7 +551,8 @@ (mkdir (mkdir-command platform)) (ext (object-extension platform)) (sname (prefix srcdir name)) - (out (quotearg (target-file (conc sname ext) mode))) + (out (quotearg (target-file (conc sname ".static" ext) + mode))) (outlnk (quotearg (conc sname +link-file-extension+))) (dest (destination-repository mode)) (dfile (quotearg (slashify dest platform)))Trap