[petsc-dev] calling petsc from a mex file

Vaclav Hapla vaclav.hapla at erdw.ethz.ch
Thu May 10 14:28:36 CDT 2018

I confirm the same problem. But I also don't know how to fix this systematically in the buildsystem. I found hard-coded -L options here
but I'm in doubts I can do the same with -Wl,-rpath.


> 9. 5. 2018 v 18:49, Munson, Todd <tmunson at mcs.anl.gov>:
> Note: I compiled the latest Petsc using --with-matlab and changed to the
> src/snes/examples/tutorials directory and did a "make ex5".  The
> compilation works fine, but the "-Wl,-rpath" for the matlab
> libraries is missing and I have to set my DYLD_LIBRARY_PATH
> manually.  I don't know where to fix this in the build
> system.

More information about the petsc-dev mailing list