Compiling Python for .so

Jay Steele (jdsteele@espresso.UWaterloo.CA)
Sat, 7 Jan 1995 16:55:35 GMT

I've scoured the html docs and the FAQ, and I've pretty much come up
dry, so I'm hoping somebody out there has had a similar situation.

I can compile python 1.1 on a sparcstation 20 running SunOS 5.3,
but it does not seem to "automatically" detect the fact that
dlfcn.h exists on my system and that it is capable of using
shared objects.

The problem is the two environment variables in Python/import.c
called DYNAMIC_LINK and USE_SHLIB are never set by configure, and
the code imbedded in these #ifdef's never gets included in the
compilation.

I have found a work-around (and the dynamic loading of .so's works
great), but I was hoping there was some cleaner way of doing it,
hopefully from the configure command.

Thanks in advance,
-Jay