creating dynamic objects with Python

Lance Ellinghouse (lance@fox.com)
Tue, 16 Aug 94 7:52:53 PDT

My system finally has dynamic linking and I would like to turn most
of the "optional" modules into dynamic libraries.

I build my shared object using the following line:

cc -O -K i486 -K pic -belf -G -I.. -I../Include -DHAVE_CONFIG_H -c rotormodule.c -o rotormodule.so -lm

This builds correctly. And creates a .so file that is about 10k.
Then when I try to import it, it complains that it cannot find things
like 'newobject'.

If I link against all the Python libs, then I get a .so file that is
about 240K and it still cannot find some things...

What do other people do?

Lance Ellinghouse
lance@fox.com