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>
This commit is contained in:
parent
05a69edeb7
commit
9157c1b0aa
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue