mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-14 15:12:03 +01:00
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>
This commit is contained in:
parent
17c1fe8073
commit
127416ae93
@ -10,7 +10,7 @@ import sys
|
|||||||
import glob
|
import glob
|
||||||
|
|
||||||
_SHARED_RE = re.compile(r"Shared library: \[([^\]]+)\]")
|
_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):
|
class CheckDependencies(object):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user