fix(check_deps): Fix support for includes in ld.so.conf

The path passed to _ReadLdSoConf must start with a '/' which wasn't
happening since relpath returns a relative path.
This commit is contained in:
Michael Marineau 2013-11-06 18:28:02 -08:00
parent 078ec6cf0d
commit 84fadc8236

View File

@ -47,7 +47,8 @@ class CheckDependencies(object):
# Includes are absolute or relative to the file itself.
line = os.path.join(os.path.dirname(path), line[8:])
for p in glob.glob(self._root + line):
libdirs.extend(self._ReadLdSoConf(os.path.relpath(p, self._root)))
rel_p = "/%s" % os.path.relpath(p, self._root)
libdirs.extend(self._ReadLdSoConf(rel_p))
f.close()