[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] export of LD_LIBRARY_PATH in e_start_main.c



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mon, 18 Dec 2006 13:29:34 -0500
schrieb Mike Frysinger <vapier@gentoo.org>:

> On Monday 18 December 2006 03:47, Carsten Haitzler wrote:
> > and what is $ORIGIN?
> 
> it's a special keyword recognized by the ldso:
> If the name is ``ORIGIN'', then the substitution sequence is replaced by the 
> dynamic linker with the absolute pathname of the directory in which the 
> object containing the substitution sequence originated.
> 
> in other words, if you execute "/usr/bin/foo", $ORIGIN will be replaced 
> with "/usr/bin"
> 
> so if you utilize -rpath '$ORIGIN/../lib' in the linker flags when linking the 
> e binary, then the ldso will automatically search /usr/bin/../lib/ when 
> searching for libraries for the e application only ... thus the environment 
> of e will not be polluted and applications launched inside of e should work 
> just fine
> -mike

hmm in my manpage about ld.so i can't find any references to ORIGIN/LD_ORIGIN ENV-Var.
The only reference i found was in a manpage for SunOS 5.9 (http://bama.ua.edu/cgi-bin/man-cgi?ld.so.1+1) and solaris(http://docs.sun.com/app/docs/doc/816-5165/6mbb0m9k7?a=view)

- -- 
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQCVAwUBRYebKdgaULoCncyGAQKEFwP9FbLXSqNva5gAmolCqWnixX7sO5AW2aYs
5qVsg1g14JurGSP9cqDf/ebwdLqzHsfOmv4k0D4J5rwysv23T25B0bSFAloJoYDs
llHjQ6UKo4uwZUPASSn8LZLgr79eJY3SAX60iQW+xlPkNQwcgDCuPzNdpfqHYFgp
QoZiDRAKdpw=
=zjNJ
-----END PGP SIGNATURE-----