[f2py] I need help on liking external libs

Pearu Peterson pearu@cens.ioc.ee
Tue, 26 Feb 2002 20:38:23 +0200 (EET)


On Tue, 26 Feb 2002, Paulo Teotonio Sobrinho wrote:

> for each g_2 function I used. It seems to work beautifully. One more
> question: I have my wrapper in a dynamical lib libmywrapper.so. Once I
> have the object file for the wrapper, how do I link it statically into the
> python module?

I have never linked my extension modules to python statically. But it can
be probably done when building python. Look at Modules
directory in the python source tree where there are lots of examples. In
particular, read the header comments of the Modules/Setup file.
See also http://www.python.org/doc/current/ext/ext.html.

Pearu