[petsc-dev] switch petsc-dev to use --with-shared-libraries by default?
Matthew Knepley
knepley at gmail.com
Fri Jun 1 19:11:53 CDT 2012
On Fri, Jun 1, 2012 at 2: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. xlc also insists that all libraries linked
>
Here is the problem for BuildSystem right now. We just need to fix it to put
-qnostaticlink flag in LDFLAGS. That should put it in the shared object link
along with -qmkshrobj fro sharedLibraryFlags, and in the executable.
Matt
> are .so, so trying to link in static library archives will confuse it
> as well.
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120601/6f1fea8c/attachment.html>
More information about the petsc-dev
mailing list