[petsc-dev] switch petsc-dev to use --with-shared-libraries by default?

Jed Brown jedbrown at mcs.anl.gov
Fri Jun 1 13:21:19 CDT 2012


On Fri, Jun 1, 2012 at 1:18 PM, Aron Ahmadia <aron.ahmadia at kaust.edu.sa>wrote:

>  I recall you were fighting with this recently. Did you figure out what was
> > wrong?
>
> The semantics for compiling/linking on BG/P with XL compilers is not
> that hard.  All objects need to be compiled with the -qpic flag.
> Shared libraries are built with the -qmkshrobj -qnostaticlink flags.
> Final executables must be linked without the -qmkshrobj flag but with
> the -qnostaticlink flag.


Is this the part that PETSc is doing incorrectly now?


>  xlc also insists that all libraries linked
> are .so, so trying to link in static library archives will confuse it
> as well.


This should be avoided everywhere.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120601/6cb478ec/attachment.html>


More information about the petsc-dev mailing list