[llvm] r201921 - Use relative rpath so that the installation and build dirs are relocatable.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Feb 26 13:28:26 PST 2014


> While it may be 'correct' on more recent darwin, darwin8 doesn't understand
> @rpath.

:-(

> So using CMAKE_INSTALL_NAME_DIR = @executable_path/../lib seems to work
> well, and lets me run binaries from the build directory.
> Then installation follows the same directory structure as the build dir, so
> it works fine.  Is there anything bad about linking this way?

You mean like the attached patch? It does seem to work on current OS
X, so if it also works on old ones we could switch.

Can you confirm that it fixes the build for you?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140226/caad29db/attachment.obj>


More information about the llvm-commits mailing list