[petsc-dev] wrong makefile variables?

Lisandro Dalcin dalcinl at gmail.com
Sat Oct 16 15:54:49 CDT 2010

On 16 October 2010 23:13, Jed Brown <jed at 59a2.org> wrote:
> On Sat, Oct 16, 2010 at 22:02, Barry Smith <bsmith at mcs.anl.gov> wrote:
>> Ok, config/PETSc/Configure.py will automatically put PETSC_LIB_BASIC =
>> -lpetsc into $PETC_ARCH/conf/petscvariables when run with single library.
> So you're not going to have PETSC_LIB_BASIC = -lpetscts ... -lpetscsys?
>  This is useful because the list of library names is not constant and
> libpetsc changed to libpetscsys in 3.1.  Lisandro (and everyone else that
> needs to find PETSc from configure tests) could write special code to check
> and use whatever is necessary, but why force that? In particular, putting
> them in PETSC_LIB_BASIC means that old versions of the configure scripts
> will still work, and new versions won't have to have a ton of branches to
> work with old versions of PETSc.
> Jed

By default, PETSC_LIB_BASIC hardwires the full list, it is defined in
conf/variables. But it is wrong for single-lib builds, so Barry just
need to re-define it in $PETSC_ARCH/conf/petscvariables to override
the default value, only in case of single-libs builds.

Lisandro Dalcin
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169

More information about the petsc-dev mailing list