[petsc-users] automatic determination of which libraries petsc wants

Geoffrey Irving irving at naml.us
Thu Jan 31 18:39:55 CST 2013


On Thu, Jan 31, 2013 at 4:34 PM, Matthew Knepley <knepley at gmail.com> wrote:
> On Thu, Jan 31, 2013 at 7:25 PM, Geoffrey Irving <irving at naml.us> wrote:
>>
>> We have an scons build system linking against PETSc, and it would be
>> nice to have an automatic way of determining the list of libraries
>> that a statically linked, installed version of PETSc wants (e.g., the
>> MacPorts installed version).  What's a good way to do such a thing
>> from *outside* the PETSc build system?
>
>
> It depends on how much work you want to do. For at least two years I think,
> our default had been -lpetsc. I would just do this.

The MacPorts build of petsc has no option for shared, so just doing
-lpetsc spews hundreds of linker errors about yaml, ML, mumps, SCOTCH,
etc.

Geoffrey


More information about the petsc-users mailing list