Denis Davydov
2015-10-27 16:28:30 UTC
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
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