提交 0f9b1f67 编写于 作者: R Rich Felker

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.
上级 bd5ed22c
......@@ -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 ?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册