logic of config options
Matthew Knepley
knepley at gmail.com
Wed May 6 06:52:47 CDT 2009
2009/5/5 Giuseppe Ghibò <ghibo at mandriva.com>
> Hi.
>
> I'm trying to package petsc 2.3.3, but I didn't understand the logic
> of some options, in particular for umfpack. E.g. If I specify at the
> config stage:
>
> --with-umfpack-lib=[${_libdir}/libumfpack.a,${_libdir}/libamd.a]
>
> and the ${_libdir} path contains both shared and static libraries then
> the linking command are expanded to:
>
> -lumfpack -Wl,-rpath,<path of petsc> -lamd
>
> Ditto if I specify:
>
> --with-umfpack-lib=[libumfpack.a]
>
> they are expanded to the two libs "-lumpack -lamd" (i.e. it guesses the
> other lib "libamd" even if I don't specify). So what is the logic behind
> the --with-xxx-lib
> option? Should I specify just the list of comma separated libraries
> enclosed in '[...]' pair? And how to force the usage of static libraries
> when both shared and static exists? Because in other cases I see it
> could be specified also the linking command. E.g., if I have a
> system-wide lapack library, I could use:
>
> --with-lapack-lib=[-llapack]
>
> but this sound working in some option and not in some other. So what
> is the "right way"?
The processing rules are in
config/BuildSystem/config/libraries.py:getLibArgumentList()
Matt
>
> Thanks in advance for any help.
>
> Bye
> Giuseppe.
>
--
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090506/da2def88/attachment.html>
More information about the petsc-dev
mailing list