Re: why don't extensions link dynamically?

Bill Janssen (janssen@parc.xerox.com)
Wed, 27 Jul 1994 12:34:35 PDT

Excerpts from direct: 27-Jul-94 Re: why don't extensions li.. Brad
Midgley@peruvian.cs (295*)

> Bill, are you talking about the "standard" extensions? (extensions.tgz)
> If so, can you describe your make/link? Is the loading automatic (ie
> searchpath) or does python need to explicitly be told to load?

I'm using dynamic loading via shared libraries on SunOS 4.1.3. It uses
the normal PYTHONPATH mechanism, except that object libraries have the
extension ``module.so'' rather than ``.py''. Thus the tkinter module is
``tkintermodule.so''.

To build, I add a rule to the `generic' Makefile and modify the ``all'' target:

all: tkintermodule.so

tkintermodule.so : $(MODOBJS)
ld -o tkintermodule.so $(MODOBJS) -L/import/X11R4/usr/include -L/import/tcl7/lib -ltk -ltcl -lX11

Bill