help-cfengine
[Top][All Lists]
Advanced

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

Re: Nonstandard lib location & LD_RUN_PATH


From: Brian C. Hill
Subject: Re: Nonstandard lib location & LD_RUN_PATH
Date: Tue, 29 Nov 2005 12:45:06 -0800
User-agent: Mutt/1.4.2.1i

On Tue, Nov 29, 2005 at 11:51:13AM -0800, David Masterson wrote:
> 
> True, but isn't LD_LIBRARY_PATH more universal amongst the UNIX systems
> (Solaris, HP-UX, AIX, Linux, etc.)?
> 
> David Masterson

        LD_LIBRARY_PATH and LD_RUN_PATH serve different purposes.

        LD_LIBRARY_PATH is read from the env at run-time by all linked
objects (programs), but not by setuid objects. LD_RUN_PATH is a linker
directive that tells the linker to hard code the run time search path
in the linked object. Sun's and GNU's ld will honor LD_RUN_PATH, but
as far command line swiches go, Sun's ld uses -R<path> and GNU's ld
uses '-rpath'.

Brian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]