<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I sent this patch at a rather inopportune time, and it doesn't seem to have caught anyone's attention. On the advice of some helpful folks on IRC, I'm trying again.<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Benjamin Scarlet <<a href="mailto:flld0@greynode.net">flld0@greynode.net</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>enabling clients to use rpath to find LLVM shared libraries on OS X</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">July 6, 2013 8:58:00 AM EDT<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br></span></div><br><div>Could someone please review and apply this patch (or ask for further work, etc. etc.)?<br><br>The attached patch changes the install name built into libLLVM-<version>.dylib, libLTO.dylib, and libprofile_rt.dylib from @executable_path/../lib/<libraryname> to @rpath/<libraryname> on OS X.<br><br>Without this patch, on OS X, only executables installed inside the LLVM install directory hierarchy can find the LLVM shared libraries without using DYLD_LIBRARY_PATH - the install name does not allow the use of an rpath.<br><br>With this patch, an executable which is linked against those libraries will honor a specified rpath, and so the overall behavior is the same as on, e.g., Linux.<br><br>Because the LLVM binaries are already built with such an rpath (probably because it's necessary on other platforms), no additional change is necessary to keep them finding their dependencies.<br><br>Thanks for looking,<br>Ben Scarlet<br><br></div></blockquote></div></body></html>