[SciPy-dev] Building numpy/scipy on RHEL5 OR CentOS5
David Cournapeau
david@ar.media.kyoto-u.ac...
Mon Jun 23 21:45:18 CDT 2008
Phil Austin wrote:
> 3) build LAPACK
>
> for lapack: cp INSTALL/make.inc.LINUX ~/install/lapack-3.1.1/make.inc
> and edit:
>
> FORTRAN = gfortran
> OPTS = -funroll-all-loops -O3 -fPIC
> DRVOPTS = $(OPTS)
> NOOPT =
> LOADER = gfortran
> LOADOPTS =
>
> BLASLIB = /home/phil/usr251_Centos/lib/libcblas.a
> LAPACKLIB = lapack$(PLAT).a
> TMGLIB = tmglib$(PLAT).a
> EIGSRCLIB = eigsrc$(PLAT).a
> LINSRCLIB = linsrc$(PLAT).a
>
> !!and then rebuild these individual routines with fPIC -- recompile!
>
You should put -fPIC to NOOPT and LOADOPTS instead: this will be more
reliable, as this way, -fPIC will be used for every source file
cheers,
David
More information about the Scipy-dev
mailing list