Building things with

James Stroud jstroud at
Fri Sep 22 04:46:33 CEST 2006

James Stroud wrote:
> Hello All,
> This is annoying. I am trying to build scipy right now but every .so 
> file requires my adding "-lpython2.5 -lpthread -lm -lutil -ldl -shared" 
> to the ld flags.
> Main Question: When building with "", where can I include this 
> information so I don't have to link every .so file by hand?
> Also, why would this not be caught by the developers of scipy and numpy? 
> What factors go into needing to specify libraries and to properly link 
> .so files manually? Certainly the enthought didn't forget to test the 
> build process, so why would my machine be special in this regard?
> I'm running Linux FC4 on a dual intel p4 (~3.2 GHz) with sundry 
> libraries in non-standard places. Is this non-standard part what's 
> killing me?
> James

Well I added those arguments to $LDFLAGS, but it seemed like a pretty 
miserable hack, especially the "-shared" part.

I'm still curious how to make a 3rd party work correctly.


James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

More information about the Python-list mailing list