2009/5/5 Giuseppe Ghibň <span dir="ltr"><<a href="mailto:ghibo@mandriva.com">ghibo@mandriva.com</a>></span><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;">
Hi.<br>
<br>
I'm trying to package petsc 2.3.3, but I didn't understand the logic<br>
of some options, in particular for umfpack.  E.g. If I specify at the<br>
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). So what is the logic behind the --with-xxx-lib<br>
option?  Should I specify just the list of comma separated libraries<br>
enclosed in '[...]' pair? And how to force the usage of static libraries<br>
when both shared and static exists? Because in other cases I see it<br>
could be specified also the linking command. E.g., if I have a<br>
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"?</blockquote><div><br>The processing rules are in config/BuildSystem/config/libraries.py:getLibArgumentList()<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;">
<br>
Thanks in advance for any help.<br>
<br>
Bye<br><font color="#888888">
Giuseppe.<br></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>