summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-03-10 17:56:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-16 17:41:56 +0000
commit9157c1b0aa5c1bd5dea84c346b4324721d31101d (patch)
tree1f4b2c89710af515da8512ee134ba2c18d9adfd9
parent05a69edeb70c3d19d696a2056d50d89a415889cd (diff)
downloadast2050-yocto-poky-9157c1b0aa5c1bd5dea84c346b4324721d31101d.zip
ast2050-yocto-poky-9157c1b0aa5c1bd5dea84c346b4324721d31101d.tar.gz
chrpath.bbclass: handle RUNPATH as well as RPATH
Binaries linked with gold may contain a RUNPATH instead of an RPATH. Update chrpath.bbclass process_file_linux() to handle both cases. (From OE-Core rev: 46ceb4d035e4f49e6b4a3a83bf604944d2b991c1) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/chrpath.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass
index 77b1937..7a5d960 100644
--- a/meta/classes/chrpath.bbclass
+++ b/meta/classes/chrpath.bbclass
@@ -10,6 +10,8 @@ def process_file_linux(cmd, fpath, rootdir, baseprefix, tmpdir, d):
if p.returncode != 0:
return
+ # Handle RUNPATH as well as RPATH
+ err = err.replace("RUNPATH=","RPATH=")
# Throw away everything other than the rpath list
curr_rpath = err.partition("RPATH=")[2]
#bb.note("Current rpath for %s is %s" % (fpath, curr_rpath.strip()))
OpenPOWER on IntegriCloud