OK thanks Jed, that's fixed it. - Adrian
On 8/10/18 2:14 PM, Jed Brown wrote:
This was a bug, now fixed in 'maint' and will be in the next patch release. You can repair the PETSc.pc, update to 'maint', or apply this 2-line patch. https://bitbucket.org/petsc/petsc/commits/e1e675de8c3f48a6c27b15412e00ded76072f735 Adrian Croucher <[email protected]> writes:hi I am experimenting with using pkg-config to help build my code, and using the PETSc.pc file in $PETSC_DIR/$PETSC_ARCH/lib/pkgconfig. At present it is not working, because the PETSc.pc file sets Libs: -L${libdir} -lpetsc where libdir=${prefix}/lib, and (in my case at least) prefix is equal to $PETSC_DIR. But the PETSc library is not in $PETSC_DIR/lib, it is in $PETSC_DIR/$PETSC_ARCH/lib. Have I messed something up in my PETSc config so that the PETSc.pc file is not quite right? - Adrian
-- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: [email protected] tel: +64 (0)9 923 4611
