diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-08-23 23:13:25 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-08-23 23:13:25 -0400 |
commit | 0f9b1f672b68b7c3570f07b130cc5c8938b22bad (patch) | |
tree | f8e42f04ffca9f8a60ece3d5f5a18027adebccae /src | |
parent | bd5ed22c58c1356f22fb69a8c392f650a0d89443 (diff) | |
download | musl-0f9b1f672b68b7c3570f07b130cc5c8938b22bad.tar.gz musl-0f9b1f672b68b7c3570f07b130cc5c8938b22bad.tar.xz musl-0f9b1f672b68b7c3570f07b130cc5c8938b22bad.zip |
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')
-rw-r--r-- | src/ldso/dynlink.c | 2 |
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 ? |