Re: dynamic loading on Linux?

Eric C. Newton (ecn@clark.net)
23 Apr 1995 11:49:29 GMT

Michal Spalinski (mspal@fuw.edu.pl) wrote:
: Hello,

< deleted text >

: I would be grateful for an indication of whether this dynamic linking thing
: works on Linux (I have 1.2.5) and what do I have to do to the Makefile or
: whatever to have this work. My python binary is about 324kb now, which is no
: problem, but it would be nice to make it smaller if it can be done.

On linux you currently have two choices. You can upgrade many of your
system libraries and utilities to the ELF binary format. This will give
you Sun/SVR4 dlopen/dlsym/dlclose style dynamic linking. This is very
flexible, the best supported, and the future of linux.

If you would rather not make that leap right now, you can get the GNU dynamic
linking package (dld), and the dl interface written on top of it. Then
you must configure python with --with-dld or some such option. This option
is documented in the python README.

I've used both. Feel free to contact me if you have troubles with either
one.

-Eric
Newton Consulting
ecn@clark.net