give out a little more information in case of a missing dependency

PR:		56549
Submitted by:	edwin
Reviewed by:	joerg, ru
Approved by:	joerg
MFC after:	2 weeks
This commit is contained in:
eik 2004-05-28 00:05:28 +00:00
parent 06394130cb
commit 9b2de159a4

View File

@ -838,7 +838,12 @@ find_library(const char *xname, const Obj_Entry *refobj)
(pathname = search_library_path(name, STANDARD_LIBRARY_PATH)) != NULL)
return pathname;
_rtld_error("Shared object \"%s\" not found", name);
if(refobj != NULL && refobj->path != NULL) {
_rtld_error("Shared object \"%s\" not found, required by \"%s\"",
name, basename(refobj->path));
} else {
_rtld_error("Shared object \"%s\" not found", name);
}
return NULL;
}