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.

BUG=None
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
Reviewed-on: https://gerrit.chromium.org/gerrit/39397
Tested-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Josh Triplett <josh@joshtriplett.org>
diff --git a/build_library/check_deps b/build_library/check_deps
index 54e25b2..9907b90 100755
--- a/build_library/check_deps
+++ b/build_library/check_deps
@@ -10,7 +10,7 @@
 import glob
 
 _SHARED_RE = re.compile(r"Shared library: \[([^\]]+)\]")
-_RPATH_RE = re.compile(r"Library rpath: \[([^\]]+)\]")
+_RPATH_RE = re.compile(r"Library r(?:un)?path: \[([^\]]+)\]")
 
 
 class CheckDependencies(object):