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

Ed Maste emaste at freebsd.org
Wed Feb 26 18:40:47 PST 2014

On 26 February 2014 17:48, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> That is so strange. The Makefile.rules used by the configure build has
>   LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib
> so I would expect it to behave the same as the current cmake build.

This at least has a straightforward explanation -- for the configure
build my binary ends up with an rpath containing both the
$ORIGIN-based relative path as well as an absolute path:

feynman% readelf -d ./Debug+Asserts/bin/lldb | grep PATH
 0x000000000000000f (RPATH)              Library rpath:
 0x000000000000001d (RUNPATH)            Library runpath:

More information about the lldb-dev mailing list