summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-23 23:13:25 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-23 23:13:25 -0400
commit0f9b1f672b68b7c3570f07b130cc5c8938b22bad (patch)
treef8e42f04ffca9f8a60ece3d5f5a18027adebccae /src/ldso/dynlink.c
parentbd5ed22c58c1356f22fb69a8c392f650a0d89443 (diff)
downloadmusl-0f9b1f672b68b7c3570f07b130cc5c8938b22bad.tar.gz
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.
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 573af750..6d3d08ed 100644
--- 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 ?