make dlopen honor the rpath of the main program
this seems to match what other systems do, and seems useful for programs that have their libraries and plugins stored relative to the executable.
This commit is contained in:
parent
bd5ed22c58
commit
0f9b1f672b
1 changed files with 1 additions and 1 deletions
|
|
@ -1220,7 +1220,7 @@ void *dlopen(const char *file, int mode)
|
|||
p = 0;
|
||||
errflag = 1;
|
||||
goto end;
|
||||
} else p = load_library(file, 0);
|
||||
} else p = load_library(file, head);
|
||||
|
||||
if (!p) {
|
||||
snprintf(errbuf, sizeof errbuf, noload ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue