Subject: ld.elf_so searchpaths
To: None <tech-userlevel@netbsd.org>
From: Frank van der Linden <frank@wins.uva.nl>
List: tech-userlevel
Date: 03/12/1999 17:42:49
Ok, so I checked, and on Solaris the searchpath is:

	1) LD_LIBRARY_PATH
	2) rpath
	3) default path

on NetBSD's ELF platforms:

	1) rpath
	2) LD_LIBRARY_PATH
	3) default path

Greg was right that search paths get prepended in ld.elf_so, but
rpath is searched in a seperate loop, before the other search path
that gets prepended to.

Solaris' order seems correct to me; you have to be able to override
rpath. A possible ld.so.conf or whatever it is called should be last.

- Frank