> ... couldn't you just use the LD_RUN_PATH
> environment variable? From the man page for ld(1):
>
> If -rpath is not used when linking an ELF executable, the
> contents of the environment variable LD_RUN_PATH will be used
> if it is defined.
Thanks for the hint. When I pass the -rpath option to the linker
(gcc -Wl,-rpath thepath ...) the executable is linked. However, when I try
to run it, it exist with an "undefined symbol" -error. I can see with strace
that the libraries containing the respective symbol is loaded (I verfied
that it contains the symbol with nm). If I don't set any path at link-time,
but rather use the LD_LIBRARY_PATH environment variable, the same executable
works fine. I can't really claim to understand what's going on here.
Rolf
Rolf Mueller rolf.mueller@yale.edu
Intelligent Sensors Lab, EE Dept.
Yale University, New Haven, CT 06520-8284
Phone 203 432 4297 Fax 203 432 7769