~ chicken-core (chicken-5) cbd04ea7ee22d95f976c467ec784c0b022ff55ec


commit cbd04ea7ee22d95f976c467ec784c0b022ff55ec
Author:     Christian Kellermann <ckeen@pestilenz.org>
AuthorDate: Fri Mar 11 13:26:24 2011 +0100
Commit:     felix <felix@z.(none)>
CommitDate: Sun Mar 13 08:54:32 2011 +0100

    Append the binary version to libchicken.so when deploying
    
    This will add the binary version to the chicken library when
    copying the libchicken.so to the app directory.
    
    Before the patch loading libchicken.so.BINARY_VERSION fails on
    linux systems w/o an installed chicken.

diff --git a/csc.scm b/csc.scm
index e097523d..92edb166 100644
--- a/csc.scm
+++ b/csc.scm
@@ -944,7 +944,9 @@ EOF
 	      "libchicken"
 	      (cond (osx "dylib")
 		    (win "dll")
-		    (else "so")))))
+		    (else (string-append
+                           "so."
+                           (number->string BINARY_VERSION)))))))
     (copy-files lib targetdir)))
 
 (define (copy-files from to)
Trap