[Numpy-discussion] Distutils: using different linker options for c++ and c code

Charles R Harris charlesr.harris@gmail....
Thu Apr 17 23:33:10 CDT 2008

Question. How does numpy link against the python library when there is only
a static version present? I compiled/installed python2.6.2a and the only
library it generated was /usr/local/lib/python2.6/config/libpython2.6.a.
Furthermore, I didn't see the python library specifically linked by any of
the numpy code. Compare with the python2.5 build:

$[charris@f8 numpy]$ grep /numpy/fft/fftpack.o log2.6
gcc -pthread -shared -Wall -march=nocona -mtune=generic -O2 -pipe
-fomit-frame-pointer -fno-strict-aliasing -finline-functions
build/temp.linux-i686-2.6/numpy/fft/fftpack.o -o

$[charris@f8 numpy]$ grep /numpy/fft/fftpack.o log2.5
gcc -pthread -shared -Wall -march=nocona -mtune=generic -O2 -pipe
-fomit-frame-pointer -fno-strict-aliasing -finline-functions
build/temp.linux-i686-2.5/numpy/fft/fftpack.o -L/usr/lib -lpython2.5 -o

I'm trying to track down the failed check_object_casting failure and I am
finding some very strange things.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080417/4fcfbd21/attachment.html 

More information about the Numpy-discussion mailing list