]> code.ossystems Code Review - openembedded-core.git/commitdiff
chrpath.bbclass: handle RUNPATH as well as RPATH
authorAndre McCurdy <armccurdy@gmail.com>
Wed, 11 Mar 2015 00:56:27 +0000 (17:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Mar 2015 17:38:35 +0000 (17:38 +0000)
Binaries linked with gold may contain a RUNPATH instead of an RPATH.
Update chrpath.bbclass process_file_linux() to handle both cases.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/chrpath.bbclass

index 77b19372ba0913c0707fe2938ce3b170fb7896e1..7a5d9602f529bcb46a65850bfd06587bf4a2559c 100644 (file)
@@ -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()))