<div dir="ltr"><div>I found the most sane way to do this on the BG/P was to query the compiler wrappers for C/C++/Fortran.  I don't understand why you aren't or are unable to do this within PETSc's configure.<br><br></div><div>Of course, we still encounter the crazy errors with shared libraries on our Cray XE6 where if we fail to preload a needed MPI library before importing PETSc we get symbol resolution errors...<br></div><div><br></div>A<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 11, 2015 at 10:26 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> writes:<br>
> so that if the basic link fails it automatically tries again here after adding the -lstdc++ library.<br>
<br>
</span>What if you're building with Clang and need -lc++ instead?<br>
</blockquote></div><br></div>