projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd5ed22
)
make dlopen honor the rpath of the main program
author
Rich Felker
<dalias@aerifal.cx>
Sat, 24 Aug 2013 03:13:25 +0000
(23:13 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 24 Aug 2013 03:13:25 +0000
(23:13 -0400)
this seems to match what other systems do, and seems useful for
programs that have their libraries and plugins stored relative to the
executable.
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 573af75073f293d3fa751ce778e8ebe8760a0e35..6d3d08edee8c2fc4df01f265ea81555e4342b55d 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-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 ?