[SciPy-dev] Stupid question.

Pearu Peterson pearu at cens.ioc.ee
Tue Feb 19 15:54:34 EST 2002


On Tue, 19 Feb 2002, Fernando Pérez wrote:

> > But there should be a rather dirty fix:
> >   gcc -shared ... /usr/local/lib/fft.so.2
> > that is adding all shared libraries to linker instead of using -lfftw etc.
> 
> Sorry Pearu, I'm not sure I follow you. I'm not too familiar with gcc's
> library-building syntax. Could you clarify a bit what I'm supposed to tell
> gcc? I'll then test it and let you know.

This should not be gcc specific. Anyway, try

gcc -shared build/temp.linux-i686-2.2/fftw_wrap.o \
-L/usr/local/home/fperez/lib -Lbuild/temp.linux-i686-2.2 \
/usr/local/lib/libfftw_threads.so.2 \
/usr/local/lib/librfftw_threads.so.2 \
/usr/local/lib/libfftw.so.2 \
/usr/local/lib/librfftw.so.2 \
-lpthread \
-o  build/lib.linux-i686-2.2/scipy/fftw/fftw.so

(I hope that I made no types in above)

Pearu




More information about the SciPy-Dev mailing list