Huh? Are you sure about that?
DT_RUNPATH is not documented as an environment variable related to ld, in it the ld manpage. Furthermore, this seems to make no difference in the behavior I'm seeing, and running 'strings' on my program shows that the path I put in the DT_RUNPATH environment variable didn't even make it into the executable.
Finally, as I think the subject and question clearly state, I am looking for an ALTERNATIVE to using LD_LIBRARY_PATH (which must be specified at runtime, rather than link-time).
I appreciate your attempt to help, but it seems like you didn't try to read or understand the question very thoroughly.
Main Topics
Browse All Topics





by: yuzhPosted on 2004-08-29 at 22:30:42ID: 11928748
In command line:
RY_PATH}:/ path-to-li b
lib
for sh/ksh/bash
you do:
DT_RUNPATH=/path-to/lib
export DT_RUNPATH
or simply use LD_LIBRARY_PATH
LD_LIBRARY_PATH=${LD_LIBRA
export LD_LIBRARY_PATH
For csh/tcsh
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/path-to-
you can you them in your .profile (sh/ksh/bash) or .cshrc file (csh/tcsh)