[lldb-dev] Heads-up: FreeBSD LLDB CMake build broken by relative rpath change

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Feb 27 07:57:22 PST 2014


On 27 February 2014 10:51, Brad King <brad.king at kitware.com> wrote:
> On 02/27/2014 10:47 AM, Rafael EspĂ­ndola wrote:
>> The attached patch should fix both issues.
>
> Perhaps -zorigin should be used only when we are using $ORIGIN?
>
>   if(NOT DEFINED CMAKE_INSTALL_RPATH)
>     set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
>     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-zorigin")
>   endif()
>
> If a user sets CMAKE_INSTALL_RPATH to include $ORIGIN then he/she
> can also add -zorigin as necessary.

True. My thinking was that there is probably no reason not to have it,
but the fact that it is not implicit in freebsd probably means there
is a reason for not having it sometimes.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140227/2bd4c970/attachment.bin>


More information about the lldb-dev mailing list