glibc and $ORIGIN

Mike Frysinger vapier@gentoo.org
Tue May 5 22:05:00 GMT 2009


On Tuesday 05 May 2009 17:44:16 Fabiano Sidler wrote:
> I'd like to build a system unfixed to absolute paths, so with
>
>   LDFLAGS += '-z origin'
>   LD_RUN_PATH = '$ORIGIN/../lib'
>
> Unfortunately, the glibc seems not to support it. Am I wrong or
> is there a work-around for this?

$ORIGIN on the glibc libs themselves will not work.  $ORIGIN on any other ELF 
should work just fine.  the ldso must always be in /lib/.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20090505/7e25f663/attachment.sig>


More information about the Libc-help mailing list