<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 17, 2010, at 5:40 PM, Matthew Knepley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">We decided a long time ago that using the compiler as the linker was necessary to<div>assure that compiler libraries were picked up. I was asked to remove those options</div><div>to cut down on people screwing themselves. Do we need another linker?</div></blockquote><div><br></div> I can get around it but it really is a major limitation. Especially as we want to support crazy-assed systems which use weird-assed compile and link scripts built on top of other weird-assed compile and link scripts built on top of other weird-assed compile and link scripts built on top of the native compilers.</div><div><br></div><div> Could you put back in support for </div><div><br></div><div>## You can provide the executable linkers directly; but DO NOT unless you really know what you are doing!</div><div><div>## help.addArgument('Compilers', '-CC_LD=<prog>', nargs.Arg(None, None, 'Specify the linker for C only'))</div><div>## help.addArgument('Compilers', '-CXX_LD=<prog>', nargs.Arg(None, None, 'Specify the linker for C++ only'))</div><div>## help.addArgument('Compilers', '-FC_LD=<prog>', nargs.Arg(None, None, 'Specify the linker for Fortran only'))</div><div>but not have them listed in help messages (that is keep these lines commented out, but make it so we can use the options?) Maybe put a note in the code as I have above. I don't want support for -LD alone.</div><div><br></div><div><br></div><div> Barry</div><div><br></div><div><br></div><blockquote type="cite">
<div><br></div><div>Our conceptual model is currently:</div><div><br></div><div> compiler/linker which should generate things that run unless we are in batch mode</div><div><br></div><div> archiver</div><div><br></div><div>
shared linker</div><div><br></div><div> dynamic linker</div><div><br></div><div> Matt<br><br><div class="gmail_quote">On Thu, Jun 17, 2010 at 5:08 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Matt,<br>
<br>
It is a good thing you don't come to the new building at the lab, because I would throw you off the top balcony down to the stones. Then I would haul your carcass back up seven flights of stairs and throw you down a second time.<br>
<br>
BuildSystem seems to assume that the C compiler (and also c++ compiler) are ALWAYS also used as the C and C++ linker and there is no way to set a different linker and no way to even figure out how one can set a different linker. Why are the LD arguments commented out and never used?<br>
<br>
Barry<br>
<br>
<br>
<br>
help.addArgument('Compilers', '-CFLAGS=<string>', nargs.Arg(None, '', 'Specify the C compiler options'))<br>
help.addArgument('Compilers', '-CXX=<prog>', nargs.Arg(None, None, 'Specify the C++ compiler'))<br>
help.addArgument('Compilers', '-CXXFLAGS=<string>', nargs.Arg(None, '', 'Specify the C++ compiler options'))<br>
help.addArgument('Compilers', '-CXX_CXXFLAGS=<string>', nargs.Arg(None, '', 'Specify the C++ compiler-only options'))<br>
help.addArgument('Compilers', '-CXXCPPFLAGS=<string>', nargs.Arg(None, '', 'Specify the C++ preprocessor options'))<br>
help.addArgument('Compilers', '-FC=<prog>', nargs.Arg(None, None, 'Specify the Fortran compiler'))<br>
help.addArgument('Compilers', '-FFLAGS=<string>', nargs.Arg(None, '', 'Specify the Fortran compiler options'))<br>
<br>
## help.addArgument('Compilers', '-LD=<prog>', nargs.Arg(None, None, 'Specify the executable linker'))<br>
## help.addArgument('Compilers', '-CC_LD=<prog>', nargs.Arg(None, None, 'Specify the linker for C only'))<br>
## help.addArgument('Compilers', '-CXX_LD=<prog>', nargs.Arg(None, None, 'Specify the linker for C++ only'))<br>
## help.addArgument('Compilers', '-FC_LD=<prog>', nargs.Arg(None, None, 'Specify the linker for Fortran only'))<br>
help.addArgument('Compilers', '-LD_SHARED=<prog>', nargs.Arg(None, None, 'Specify the shared linker'))<br>
<br>
</blockquote></div><br><br clear="all"><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>
</div>
</blockquote></div><br></body></html>