check_deps: Find libraries using RUNPATH too, not just RPATH

check_deps checks for libraries using RPATH, but does not take the
similar RUNPATH into account.  For the purposes of chasing down
library dependencies, finding a library on either path suffices.

TEST=Build an image that includes binaries and associated libraries in a
     non-standard location, with the binaries and libraries setting an
     RUNPATH (and not an RPATH) pointing at that non-standard location.

Change-Id: Ic930bbacbe5c8ddeb367c39960dadea8aaba0cb2
Tested-by: Josh Triplett <>
Reviewed-by: Mike Frysinger <>
Commit-Ready: Josh Triplett <>
1 file changed