[petsc-dev] Problem with petsc.pc when configured with --with-single-library=0
Jed Brown
jed at jedbrown.org
Sat Mar 4 00:48:03 CST 2017
Barry Smith <bsmith at mcs.anl.gov> writes:
> I know nothing about the conventions for these files. I would say we should put them in, otherwise the file is not useful on many systems.
BuildSystem is insane. I made this branch from 'maint' though I'm not
sure it should necessarily ever be merged there.
https://bitbucket.org/petsc/petsc/commits/branch/jed/pkgconfig
Here is an example PETSc.pc that it now produces. Of course I would
prefer to remove the private compiler paths but that's an independent
matter and can be circumvented by disabling the *-autodetect.
prefix=/home/jed/usr/petsc-mpich-basic-prefix
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=/home/jed/usr/petsc-mpich-basic-prefix/lib
ccompiler=/opt/mpich/bin/mpicc
cflags_extra="-fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fvisibility=hidden -g3"
cflags_dep="-MMD -MP"
ldflags_rpath="-Wl,-rpath,${libdir}"
fcompiler=/opt/mpich/bin/mpif90
fflags_extra="-fPIC -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -g"
blaslapacklibs=-llapack -lblas
Name: PETSc
Description: Library to solve ODEs and algebraic equations
Version: 3.7.5
Cflags: -I/home/jed/petsc/include -I/home/jed/petsc/mpich-basic-prefix/include -I/opt/mpich/include
Libs: -L${libdir} -lpetsc
Libs.private: -Wl,-rpath,/opt/mpich/lib -L/opt/mpich/lib -Wl,-rpath,/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1 -llapack -lblas -lX11 -lpthread -lhwloc -lssl -lcrypto -lm -lmpifort -lgfortran -lm -lgfortran -lm -lquadmath -lmpicxx -lstdc++ -lm -ldl -lmpi -lgcc_s -ldl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170303/94fe1bfb/attachment.sig>
More information about the petsc-dev
mailing list