<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 13, 2017 at 8:53 AM, <span dir="ltr"><<a href="mailto:dominic@steinitz.org" target="_blank">dominic@steinitz.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote type="cite">export DYLD_LIBRARY_PATH=/Users/dom/<wbr>Library/Haskell/ghc-8.0.1/lib/<wbr>test-via-c-0.1.0.0/bin:/<wbr>Library/Frameworks/GHC.<wbr>framework/Versions/8.0.1-x86_<wbr>64/usr/lib/ghc-8.0.1/rts</blockquote></blockquote></div><br>That's a good way to break things. Consider <font face="monospace, monospace">DYLD_FALLBACK_LIBRARY_PATH</font> instead.</div><div class="gmail_extra">Also, use <font face="monospace, monospace">otool -l a.out</font> to inspect the <font face="monospace, monospace">RPATH</font> commands embedded in <font face="monospace, monospace">a.out</font>; that will tell you where dyld searches when it sees <font face="monospace, monospace">@rpath/Foo.dylib</font>.<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><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></div>