Building things with

"Martin v. Löwis" martin at
Fri Sep 22 06:39:05 CEST 2006

James Stroud schrieb:
> 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.

That shouldn't be necessary. Linking without this should work just fine.

That way, since you made libpython2.5.a a static library, you link an
entire Python interpreter into each and every extension module. This
should not be done.

What happens if you omit these flags?


More information about the Python-list mailing list