[patch] Use relative rpath so that the installation and build dirs are relocatable

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Feb 18 05:32:59 PST 2014


> On OS X for @executable_path you could use CMAKE_INSTALL_NAME_DIR:
>
>  http://www.cmake.org/cmake/help/v2.8.12/cmake.html#variable:CMAKE_INSTALL_NAME_DIR
>
> This has been supported for a long time.  CMAKE_MACOSX_RPATH is
> for using @rpath in the install_name field of binaries.

Cool. The attached patch works on OS X without requiring 2.8.12 :-)

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


More information about the llvm-commits mailing list