mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
Change the library search order so that LD_LIBRARY_PATH overrides
all others. PR: bin/28191 MFC after: 2 weeks
This commit is contained in:
parent
57813231df
commit
a7dcaa3441
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89783
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user