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

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


On 26 February 2014 14:45, Ed Maste <emaste at freebsd.org> wrote:
> LLVM r201936 restores the use of a relative rpath but this breaks LLDB
> on FreeBSD.  For now I've disabled CMAKE_BUILD_WITH_INSTALL_RPATH
> locally until the fix can be found, in the top-level LLVM
> CMakeLists.txt:
>
> if(NOT ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD )
>   set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
> endif()
>
> It seems probable that either ld flags aren't being set correctly to
> indicate that $ORIGIN is in use, or that there's an issue in FreeBSD's
> handling of $ORIGIN (on at least FreeBSD 9.2).

Which library fails to load? Is the rpath set correctly? Does it work
with the configure build? Which rpath do you get with it?

Cheers,
Rafael



More information about the lldb-dev mailing list