From 0f9b1f672b68b7c3570f07b130cc5c8938b22bad Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 23 Aug 2013 23:13:25 -0400 Subject: [PATCH] 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. --- src/ldso/dynlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ?