[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shouldn't libguilereadline, libguile-srfi-srfi-13-14 etc. be versioned?

From: Matthias Koeppe
Subject: Shouldn't libguilereadline, libguile-srfi-srfi-13-14 etc. be versioned?
Date: 05 Jun 2001 17:21:33 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6

Currently, Guile's auxiliary libraries libguilereadline,
libguile-srfi-srfi-13-14, etc. all have library version 0.0.0, and
they are loaded with DYNAMIC-LINK using the short name
(  This makes it hard to install multiple Guile
versions on one host.

I'd suggest to attach libguile's library versions (currently, 10.0.0)
to the auxiliary libraries as well and to use %guile-build-info to get
the right version number when loading the libraries, like the patch
included below illustrates.

Index: guile-readline/readline.scm
RCS file: /cvs/guile/guile-core/guile-readline/readline.scm,v
retrieving revision 1.13
diff -u -r1.13 readline.scm
--- guile-readline/readline.scm 2001/04/10 23:48:27     1.13
+++ guile-readline/readline.scm 2001/06/05 08:33:54
@@ -35,7 +35,9 @@
 ;;; but only when it isn't already present.
 (if (not (feature? 'readline))
-    (dynamic-call "scm_init_readline" (dynamic-link "")))
+    (dynamic-call "scm_init_readline" (dynamic-link 
+                                      (string-append ""
+                                                     (cdr (assq 
'libguileversion %guile-build-info))))))
 (if (not (feature? 'readline))
     (scm-error 'misc-error

Matthias Köppe --

reply via email to

[Prev in Thread] Current Thread [Next in Thread]