]> code.ossystems Code Review - openembedded-core.git/commit
relocatable.bbclass: Account for case when ORIGIN is in RPATH
authorScott Garman <scott.a.garman@intel.com>
Tue, 4 Sep 2012 23:19:51 +0000 (16:19 -0700)
committerScott Garman <scott.a.garman@intel.com>
Mon, 24 Sep 2012 16:51:11 +0000 (09:51 -0700)
commit9ebb327ae17d1a765fd1499546ccf9076bb93234
tree98d2feb7cc94ce705c7be0c3245ce3502ace4e4f
parent21952b62e3fca6c9fe750db62ca2b0587912be8a
relocatable.bbclass: Account for case when ORIGIN is in RPATH

This patch was backported from OE-Core rev:
43600df0d4efc976a9451163dd334b4763937932

This fixes a case when RPATH embedded in program have one of
its path already relative to ORIGIN. We were losing that path
if such a path existed. This patch appends it to the new edited
rpath being created when we see it.

so RPATH like below

(RPATH) Library rpath:
[$ORIGIN/../lib/amd64/jli:$ORIGIN/../jre/lib/amd64/jli]

would end up being empty

but after this patch its kept intact

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
meta/classes/relocatable.bbclass