Prepend /lib to the builtin library search path in rtld.

This commit is contained in:
Gordon Tetlow 2003-08-17 07:55:17 +00:00
parent 0b0c94741a
commit 7b73593acd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119013
2 changed files with 2 additions and 2 deletions

View File

@ -807,7 +807,7 @@ elf_hash(const char *name)
* rpath in the referencing file
* LD_LIBRARY_PATH
* ldconfig hints
* /usr/lib
* /lib:/usr/lib
*/
static char *
find_library(const char *xname, const Obj_Entry *refobj)

View File

@ -40,7 +40,7 @@
#include "rtld_machdep.h"
#ifndef STANDARD_LIBRARY_PATH
#define STANDARD_LIBRARY_PATH "/usr/lib"
#define STANDARD_LIBRARY_PATH "/lib:/usr/lib"
#endif
#define NEW(type) ((type *) xmalloc(sizeof(type)))