[OE-core] [PATCH] chrpath.bbclass: handle RUNPATH as well as RPATH

Khem Raj raj.khem at gmail.com
Wed Mar 11 01:32:48 UTC 2015


> On Mar 10, 2015, at 5:56 PM, Andre McCurdy <armccurdy at gmail.com> wrote:
> 
> Binaries linked with gold may contain a RUNPATH instead of an RPATH.
> Update chrpath.bbclass process_file_linux() to handle both cases.
> 

This is ok. RPATH is deprecated, gold is forward looking by default, may be we should add --enable-new-dtags to binutils configuration in OE


> Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
> ---
> meta/classes/chrpath.bbclass | 2 ++
> 1 file changed, 2 insertions(+)
> 
> 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()))
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list