<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 28, 2014 at 1:45 PM, Mark Brethen <span dir="ltr">&lt;<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Those are the install_names at build time of each respective port.</blockquote></div><br>I think you&#39;re confused about install_name means.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Every link-time shared object contains a canonical name telling the dynamic loader how to find the runtime version of the shared object. On OS X with Mach-O, it&#39;s called &quot;install_name&quot; and is a full pathname; there is nothing like ELF&#39;s &quot;rpath&quot;, but there are special environment variables that override the embedded locations (this is why people assuming that DYLD_LIBRARY_PATH is like ELF-style LD_LIBRARY_PATH break their systems; it doesn&#39;t behave the same way and can cause system-provided shared objects to not be found or inappropriately replaced).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">The install_name is therefore a special name embedded in a shared object allowing it to be found at runtime. If this is not either a full path or a bundle-relative path (which works *only* with bundles -- that is, things like frameworks or the app bundles you find in /Applications; these start with @ and a keyword), the dynamic loader won&#39;t be able to find the shared object at runtime. Relative pathnames will not be found reliably, and the default will be the build path --- which will almost always be incorrect, because applications aren&#39;t normally run out of their build directories, they are installed.<br clear="all">
<div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>