linking with math.so

Heiko Wundram me+python at modelnine.org
Fri May 12 09:02:03 EDT 2006


Am Donnerstag 11 Mai 2006 18:49 schrieb imdognuts at yahoo.com:
> "importing math" as far as I can tell right now,  invokes a shared
> library (math.so).  Now I have a shared library dependency that I dont
> want. Is there a way to get the math  functionality from a  dot a or a
> dot o, so I dont have to make my app dependent on a shared library?
> cos, sin, and pi which is what I need do not live in the libpython2.4.a
>   - I did an nm on it.... I'm on linux.

bonifats modelnine # ls -la /usr/lib/libm.a
-rw-r--r-- 1 root root 1194744 May  9 02:23 /usr/lib/libm.a
bonifats modelnine #

You have to link statically against that part of libc.

--- Heiko.



More information about the Python-list mailing list