linking with math.so

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • imdognuts@yahoo.com

    #1

    linking with math.so

    hi,
    My application that contains the .o's that were generated from using
    "freeze" needs to import math. The point of using freeze was to make a
    static application that can be shipped as a single entity (it contains
    the dot o's from libpython2.4.a) , vs having to worry about external
    python dependencies.

    "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.
    thanks,
    Nancy

  • Heiko Wundram

    #2
    Re: linking with math.so

    Am Donnerstag 11 Mai 2006 18:49 schrieb imdognuts@yahoo .com:[color=blue]
    > "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.[/color]

    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.

    Comment

    Working...