summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2006-12-12 16:41:25 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2006-12-12 16:41:25 +0000
commit779b350577b72b2bd9cf00c3f3a9203a1e07cfcb (patch)
treefca5deed5a7cf08ac678e1a634f10177ed6dc19a /classes
parent68b529feac9e06e5203f496a5880bb6445de86cd (diff)
package.bbclass: set PATH before running OBJDUMP to get dependencies calculated
I do not know does this is best way of fixing it but it is better to have it in repository then having rootfs images without libc.
Diffstat (limited to 'classes')
-rw-r--r--classes/package.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index c53b3ee708..132fdcb37a 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -576,6 +576,7 @@ python package_do_shlibs() {
path = os.path.join(root, file)
if os.access(path, os.X_OK) or lib_re.match(file):
cmd = bb.data.getVar('OBJDUMP', d, 1) + " -p " + path + " 2>/dev/null"
+ cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', d, 1), cmd)
fd = os.popen(cmd)
lines = fd.readlines()
fd.close()