<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 12, 2015 at 12:11 AM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":3sh" class="" style="overflow:hidden">I'll repeat my question: where are you going to find -lstdc++ and/or<div class=""><div id=":34c" class="" tabindex="0"><img class="" src="//ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><div class=""><br>
</div><div class=""><div class="">-lgfortran so that you can link without guessing?</div></div></div></blockquote></div><br></div><div class="gmail_extra">Huh, BG/P and /Q are outliers.  All of the compiler scripts went through (I believe) gcc to do the final link, which meant they properly brought in the external libraries required by C++/Fortran.  They also promised C ABI compatibility between the XL compilers and GCC, which I guess is standard these days.<br><br>zsh 10219  (git)-[master]-% gfortran -Wl,-v foo.f90<br>collect2 version 4.9.2<br>/usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.9 -weak_reference_mismatches non-weak -o a.out -L/usr/local/Cellar/gcc/4.9.2/lib/gcc/x86_64-apple-darwin13.4.0/4.9.2 -L/usr/local/Cellar/gcc/4.9.2/lib/gcc/x86_64-apple-darwin13.4.0/4.9.2/../../.. -v /var/folders/cg/50bn68y53vq3vxsn5_xdn5080000gn/T//cccoE6Eb.o -lgfortran -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm -lgcc_ext.10.5 -lgcc -lSystem<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">A<br></div></div>