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

Brad King brad.king at kitware.com
Thu Feb 27 07:51:36 PST 2014


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.

-Brad




More information about the lldb-dev mailing list