[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_litemodule.o
build/temp.linux-i686-2.6/numpy/fft/fftpack.o -o
build/lib.linux-i686-2.6/numpy/fft/fftpack_lite.so

$[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_litemodule.o
build/temp.linux-i686-2.5/numpy/fft/fftpack.o -L/usr/lib -lpython2.5 -o
build/lib.linux-i686-2.5/numpy/fft/fftpack_lite.so


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

Chuck
-------------- 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