[petsc-users] soname seems to be absent in OS-X

Barry Smith bsmith at mcs.anl.gov
Thu Oct 29 16:01:59 CDT 2015


  Denis,

   We don't understand what purpose a soname serves on Apple or how to add it. If you need it let us know how to install PETSc so that it is set and we will do it.

   Barry

> On Oct 27, 2015, at 11:28 AM, Denis Davydov <davydden at gmail.com> wrote:
> 
> Dear developers,
> 
> It seems that the compiled PETSc library does not have a soname (-Wl,-install_name=xyz.dylib in OS-X).
> I compile PETSc/SLEPc using Homebrew both on OS-X and Linux and judging from ldd/otool there is indeed a difference:
> 
> Linux (soname is there):
> $ ldd .linuxbrew_openblas/opt/slepc/lib/libslepc.so | grep "petsc"
>     libpetsc.so.3.6 => /home/woody/iwtm/iwtm108/.linuxbrew_openblas/Cellar/petsc/3.6.2/real/lib/libpetsc.so.3.6 (0x00007fac7822f000)
> 
> OS-X (no soname):
> 
> $ otool -L /usr/local/opt/slepc/lib/libslepc.dylib | grep "petsc"
>     /usr/local/opt/petsc/real/lib/libpetsc.3.6.2.dylib (compatibility version 3.6.0, current version 3.6.2)
> 
> 
> I do not see `-Wl,-soname=xyz` in linking flags and nothing like `-Wl,-install_name=xyz` is there on OS-X either.
> Any mac users can comment on this?
> 
> p.s. as Macports web is down i can’t check what folks are doing there.
> 
> Kind regards,
> Denis 
> 



More information about the petsc-users mailing list