This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Getting the head around dynamic linking



>>>>> "Andrew" == Andrew Archibald <aarchiba@undergrad.math.uwaterloo.ca> writes:

    Andrew> Ideally, this would be done using automake and libtool.
    Andrew> Alas, libtool doesn't interact so well with dynamic
    Andrew> loading; you end up having to do "ln -s .libs/libfoo.so ."
    Andrew> or something.

Libtool requires that you install (option --install) the generated
library before you use it.

    Andrew> Your method works fine, but isn't portable.  It is
    Andrew> foreseen that guile will be ble to read .la files and find
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Andrew> the real .so files in a way that appears operating-system
    Andrew> independent.  Then your code will work on non-Linux
    Andrew> systems.

This is still done in guile-hobbit-1.3, which I just released.
See file hobbit4d/link.scm in the distribution.

--

B. Urban