Re: [petsc-dev] switch petsc-dev to use --with-shared-libraries by default?
On Fri, Jun 1, 2012 at 2:18 PM, Aron Ahmadia <[email protected]>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
participants (1)
-
Matthew Knepley