[petsc-dev] PETSc.pc: missing rpath ?

Jed Brown jed at jedbrown.org
Tue Jan 2 08:32:57 CST 2018


Matthew Knepley <knepley at gmail.com> writes:

> On Tue, Jan 2, 2018 at 9:15 AM, Franck Houssen <franck.houssen at inria.fr>
> wrote:
>
>> ----- Mail original -----
>> > De: "Jed Brown" <jed at jedbrown.org>
>> > À: "Franck Houssen" <franck.houssen at inria.fr>, "For users of the
>> development version of PETSc"
>> > <petsc-dev at mcs.anl.gov>
>> > Envoyé: Mardi 2 Janvier 2018 15:02:17
>> > Objet: Re: [petsc-dev] PETSc.pc: missing rpath ?
>> >
>> > Some people don't want RPATH.  It was discussed here.
>> >
>>
>> OK
>>
>> > https://mid.mail-archive.com/CAEymZafiQtwKDxh0myQ1LD_
>> uByGKv5JyQ9PGzK3ZTmFPcOR=Kw at mail.gmail.com
>> >
>> > The RPATH flag is stored in a variable ldflag_rpath in PETSc.pc so you
>> > can add it to PETSc paths, as done in this sample makefile.
>>
>> Reading PETSC.pc from cmake, ldflag_rpath is ignored.
>
>
> That is hard to believe from the world's best build system CMake ;)

variable=ldflag_rpath is nonstandard so of course it is ignored, but
CMake has its own system for handling RPATH and other PETSc+CMake users
were circumventing code that provides RPATH.  PETSc.pc is like all other
pkg-config files in not specifying RPATH; you add it if you want it.


More information about the petsc-dev mailing list