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

Ed Maste emaste at freebsd.org
Thu Feb 27 07:33:00 PST 2014


On 27 February 2014 10:13, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
>> It isn't being set in the configure build.  With the configure build
>> rtld first fails on the $ORIGIN due to the missing flag, but still
>> finds the library via the the "backup" absolute path.  It will still
>> need an equivalent change.
>
> Ah, OK.
>
> So, this is not lldb specific (the -DBUILD_SHARED_LIBS=ON build is
> probably broken on freebsd right now). It seems to be freebsd specific
> (i don't see zorigin anywhere in binutils). Maybe what we should do is
> apply the attached patch to llvm?

It's not FreeBSD-specific; here it is in the GNU ld manual:
https://sourceware.org/binutils/docs/ld/Options.html#Options

-z keyword
`origin'  Marks the object may contain $ORIGIN.

and it turns up in some Solaris references from the early 2000s as well.




More information about the lldb-dev mailing list