[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
- RE: Nonstandard lib location & LD_RUN_PATH, (continued)
- RE: Nonstandard lib location & LD_RUN_PATH, Martin, Jason H, 2005/11/29
- RE: Nonstandard lib location & LD_RUN_PATH, David Masterson, 2005/11/29
- RE: Nonstandard lib location & LD_RUN_PATH, Martin, Jason H, 2005/11/29
- RE: Nonstandard lib location & LD_RUN_PATH, David Masterson, 2005/11/29
- Re: Nonstandard lib location & LD_RUN_PATH,
Brian C. Hill <=
- RE: Nonstandard lib location & LD_RUN_PATH, David Masterson, 2005/11/30