[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

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

Attachment: pgpVmSa0WyO1B.pgp
Description: PGP signature