From: Rich Felker Date: Sat, 24 Aug 2013 03:13:25 +0000 (-0400) Subject: make dlopen honor the rpath of the main program X-Git-Tag: v0.9.13~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f9b1f672b68b7c3570f07b130cc5c8938b22bad;p=oweals%2Fmusl.git 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. --- 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 ?