Shared libraries

Satish Balay balay at mcs.anl.gov
Mon Apr 28 13:34:23 CDT 2008


On Mon, 28 Apr 2008, Amit.Itagi at seagate.com wrote:

> 
> Hi,
> 
> I am trying to recompile my PetSc installation to have "--with-shared=1".
> Also, I am specifying "--with-blas-lapack-dir=...". The library building
> goes through ok. However, in the last step of generating the shared
> libraries, I get an error about the lapack library. This step is looking
> for liblapack in /usr/local/lib and that lib was not compiled with -fPIC. I
> want the program to use the one that I specified in
> "--with-blas-lapack-dir=...". Which option (in which file) do I need to
> tweak ?

So the primary question is: you are specifying --with-blas-lapack-dir
- but that version of blas-lapack is not picked up by configure.

However its going ahead and using blas from /usr/local/lib - which is
not what you want? [because its not compiled with -fPIC]

Please send the corresponding configure.log to petsc-maint at mcs.anl.gov

Satish





More information about the petsc-users mailing list