<div class="gmail_quote">On Fri, Jun 1, 2012 at 1:18 PM, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron.ahmadia@kaust.edu.sa" target="_blank">aron.ahmadia@kaust.edu.sa</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"> I recall you were fighting with this recently. Did you figure out what was<br>
> wrong?<br>
<br>
</div>The semantics for compiling/linking on BG/P with XL compilers is not<br>
that hard. All objects need to be compiled with the -qpic flag.<br>
Shared libraries are built with the -qmkshrobj -qnostaticlink flags.<br>
Final executables must be linked without the -qmkshrobj flag but with<br>
the -qnostaticlink flag. </blockquote><div><br></div><div>Is this the part that PETSc is doing incorrectly now?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
xlc also insists that all libraries linked<br>
are .so, so trying to link in static library archives will confuse it<br>
as well.</blockquote></div><br><div>This should be avoided everywhere.</div>