From ffe127d198476c77e712ea72cbd62631f4234dd1 Mon Sep 17 00:00:00 2001 From: jdp Date: Fri, 25 Jan 2002 16:35:43 +0000 Subject: Change the library search order so that LD_LIBRARY_PATH overrides all others. PR: bin/28191 MFC after: 2 weeks --- libexec/rtld-elf/rtld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec') diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 94ea8fd..defa4f8 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -810,9 +810,9 @@ find_library(const char *name, const Obj_Entry *refobj) dbg(" Searching for \"%s\"", name); - if ((refobj != NULL && + if ((pathname = search_library_path(name, ld_library_path)) != NULL || + (refobj != NULL && (pathname = search_library_path(name, refobj->rpath)) != NULL) || - (pathname = search_library_path(name, ld_library_path)) != NULL || (pathname = search_library_path(name, gethints())) != NULL || (pathname = search_library_path(name, STANDARD_LIBRARY_PATH)) != NULL) return pathname; -- cgit v1.1