From 7b73593acd1182f8cef4609a1124de5c06cf6fd6 Mon Sep 17 00:00:00 2001 From: Gordon Tetlow Date: Sun, 17 Aug 2003 07:55:17 +0000 Subject: [PATCH] Prepend /lib to the builtin library search path in rtld. --- libexec/rtld-elf/rtld.c | 2 +- libexec/rtld-elf/rtld.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 484cd8d90e32..5fc03b07b02a 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -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) diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index dd793bb927be..86df99dfbc23 100644 --- a/libexec/rtld-elf/rtld.h +++ b/libexec/rtld-elf/rtld.h @@ -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)))