shared libraries for PETSc 3.0.0-p2 + Hypre

Shao-Ching Huang schuang at
Fri Jan 30 14:06:56 CST 2009


I am trying to build shared library version of PETSC 3.0.0-p2 with
Hypre (Fedora 10 Linux on x86_64).

With "configure --with-shared=1 ...", it does build shared libraries
for PETSC, but the Hypre part is still static. The file
externalpackages/hypre-2.4.0b/src/config.log shows that
"--enable-shared" (for configuring Hypre) is not there.

Is there a way to build shared libraries for Hypre from PETSc's
configure command line?



My complete PETSc configure command:

./config/  --with-debugging=1 --with-shared=1 \
--with-cc=mpicc --with-fc=mpif90 --with-cxx=mpicxx        \
--with-blas-lapack-dir=/usr/lib64                         \

The first few lines of externalpackages/hypre-2.4.0b/src/config.log

$ ./configure
CC=mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3
CXX=mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -g -fPIC
F77=mpif90 -fPIC -Wall -Wno-unused-variable -g
--with-MPI-lib-dirs= --with-MPI-libs=nsl rt --with-blas-libs=
--with-blas-lib-dir= --with-lapack-libs= --with-lapack-lib-dir=
--with-blas=yes --with-lapack=yes --without-babel --without-mli
--without-fei --without-superlu

More information about the petsc-users mailing list