Re: Multiple modules in a .so?

Guido.van.Rossum@cwi.nl
Sun, 07 Aug 1994 20:23:38 +0200

I think that your hack is about the best you can get. Maybe the
following alternative will also work:

- make a separate shared library for all of the common .o files
- for each .o file that's a module, when making a shared library of
it, also specify the common .so file as one of the objects to be
linked; I think this will just link stubs and automatically load the
common .so file when first used.
- the dynamic linker will (hopefully) see that the common .so file is
already loaded when you import a second module that is linked with
it (I've seen something about reference counts in its man page)

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
<URL:http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>