[petsc-dev] --known-mpi-shared-library and --with-batch annoyance

Jed Brown jed at jedbrown.org
Thu Apr 21 14:09:12 CDT 2016

Barry Smith <bsmith at mcs.anl.gov> writes:
>      We generate (or should if we don't) our shared PETSc libraries by 
>        sharedlink   petscsys.so  -lmpi
>        sharedlink   petscvec.so -lpetscsys 

If your shared libraries are set up correctly and there is a strict
policy about transitive linking (the correct thing), then this is not
okay because petscvec.so has direct calls to MPI.  If libmpi.a (built
with -fPIC) was inlined into petscsys.so, then it would "work" (but be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160421/100d8b41/attachment.sig>

More information about the petsc-dev mailing list