Re: $path and /etc/ld.so.conf



Joseph Michaud wrote:

Ick. Hardcoded rpaths permanently fix the location of the DSOs used by the binary.

See rld(5), ld(1), and dso(5) man pages for information explaining LD_LIBRARY_PATH,
LD_LIBRARYN32_PATH, and LD_LIBRARY64_PATH.

Actually, the proper way to solve this on IRIX 6.5 is to compile with the -R<path-to-alt-lib-dir>, which doesn't hardcode the library PATH, but it does add a search PATH into the binary.


If the library is found sooner in another path, everything proceeds as it normally would. If not, the runtime linker will look in the alternate PATHs provided with the -R flag.
.




Relevant Pages

  • Re: IISState.exe - "The system cannot find the file specified"
    ... When you use the -sc flag, you are telling IISState to attach and wait for a ... crash (technically a 1st chance access violation). ... > Symbol search path is: ...
    (microsoft.public.inetserver.iis)
  • Re: linker wiredness?
    ... FreeBSD's linker doesn't add /usr/local/lib to the search path by ... flag is therefore required... ... but ldconfig already found the library!? ...
    (freebsd-questions)
  • Re: linker wiredness?
    ... FreeBSD's linker doesn't add /usr/local/lib to the search path by ... flag is therefore required... ... but ldconfig already found the library!? ...
    (freebsd-questions)