From 27316f4a23efdc90bdfe4569a6c4b7e27941606e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 8 Oct 2020 10:57:10 +0200 Subject: elf: Record whether paths come from LD_LIBRARY_PATH or --library-path This allows more precise LD_DEBUG diagnostics. Reviewed-by: Adhemerval Zanella --- elf/dl-support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf/dl-support.c') diff --git a/elf/dl-support.c b/elf/dl-support.c index 7704c10..afbc94d 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -323,7 +323,7 @@ _dl_non_dynamic_init (void) /* Initialize the data structures for the search paths for shared objects. */ - _dl_init_paths (getenv ("LD_LIBRARY_PATH")); + _dl_init_paths (getenv ("LD_LIBRARY_PATH"), "LD_LIBRARY_PATH"); /* Remember the last search directory added at startup. */ _dl_init_all_dirs = GL(dl_all_dirs); -- cgit v1.1