mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue