On Wed, May 6, 2009 at 9:17 AM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, 5 May 2009, Giuseppe Ghibň wrote:<br>
<br>
> Hi.<br>
><br>
> I'm trying to package petsc 2.3.3,<br>
<br>
</div>Why package this older version? Current version is 3.0.0.<br>
<div class="im"><br>
> but I didn't understand the logic of some options, in particular for<br>
> umfpack.  E.g. If I specify at the config stage:<br>
><br>
> --with-umfpack-lib=[${_libdir}/libumfpack.a,${_libdir}/libamd.a]<br>
><br>
> and the ${_libdir} path contains both shared and static libraries then<br>
> the linking command are expanded to:<br>
><br>
> -lumfpack -Wl,-rpath,<path of petsc> -lamd<br>
><br>
> Ditto if I specify:<br>
><br>
> --with-umfpack-lib=[libumfpack.a]<br>
><br>
> they are expanded to the two libs "-lumpack -lamd" (i.e. it guesses the<br>
> other lib "libamd" even if I don't specify).<br>
<br>
</div>petsc-3.0.0 won't add the extra -lamd<br>
<div class="im"><br>
> So what is the logic behind the --with-xxx-lib option?  Should I<br>
> specify just the list of comma separated libraries enclosed in<br>
> '[...]' pair?<br>
<br>
</div>Yes - this is the python list syntax that configure accepts. However<br>
It should also accept "-Lfoo -lbar" syntax - but it appears to do this<br>
for only a few packages. [Nees fixing?]<br>
<div class="im"><br>
> And how to force the usage of static libraries when both shared and<br>
> static exists?<br>
<br>
</div>Currently this is not possible. Perhpas it will be if "-Lfoo -lbar" is<br>
supported.<br><div class="im"></div></blockquote><div><br>You can force in a library using the full path. I think the right way to do this is<br>to make the compiler choose the static library. Many compilers have options for<br>
this.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
> Because in other cases I see it could be specified also the linking<br>
> command. E.g., if I have a system-wide lapack library, I could use:<br>
><br>
> --with-lapack-lib=[-llapack]<br>
><br>
> but this sound working in some option and not in some other. So what<br>
> is the "right way"?<br>
<br>
</div>yeah - its an inconsitancy on our part...</blockquote><div><br>What is an example of an inconsistency?<br><br>  Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
Satish</font></blockquote></div>-- <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>