<div dir="ltr"><div>Denis,</div><div><br></div><div>I use Homebrew to manage petsc and all related dependencies on OSX which uses .dylib for shared libs instead of .so. However, I have not had any issues linking against them just the usual way by passing -L/path/to/lib -lwhatever (you need to pass -Wl,-rpath,/path/to/lib as well if lib is not in run-time search path).<br></div><div><br></div><div>Hope this helps.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 12:28 PM, Denis Davydov <span dir="ltr"><<a href="mailto:davydden@gmail.com" target="_blank">davydden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Dear developers,<div><br></div><div>It seems that the compiled PETSc library does not have a soname (-Wl,-install_name=xyz.dylib in OS-X).</div><div>I compile PETSc/SLEPc using Homebrew both on OS-X and Linux and judging from ldd/otool there is indeed a difference:</div><div><br></div><div>Linux (soname is there):</div><div><pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;margin-top:0px;margin-bottom:16px;line-height:1.45;padding:16px;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;color:rgb(51,51,51)"><code style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;line-height:inherit;word-wrap:normal">$ 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)</code></pre><div>OS-X (no soname):</div></div><div><br></div><div><pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;margin-top:0px;line-height:1.45;padding:16px;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;color:rgb(51,51,51);margin-bottom:0px!important"><code style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;line-height:inherit;word-wrap:normal">$ 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)</code></pre><div><br></div></div><div>I do not see `-Wl,-soname=xyz` in linking flags and nothing like `-Wl,-install_name=xyz` is there on OS-X either.</div><div>Any mac users can comment on this?</div><div><br></div><div>p.s. as Macports web is down i can’t check what folks are doing there.</div><div><br><div>
<div>Kind regards,</div><div>Denis </div>

</div>
<br></div></div></blockquote></div><br></div>