On Fri, Jun 1, 2012 at 2: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><div class="gmail_quote"><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.  xlc also insists that all libraries linked<br></blockquote><div><br></div><div>Here is the problem for BuildSystem right now. We just need to fix it to put</div><div>-qnostaticlink flag in LDFLAGS. That should put it in the shared object link</div>
<div>along with -qmkshrobj fro sharedLibraryFlags, and in the executable.</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

are .so, so trying to link in static library archives will confuse it<br>
as well.<br>
</blockquote></div><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>