]> code.ossystems Code Review - openembedded-core.git/commit
chrpath.bbclass: Account for case when ORIGIN is in RPATH
authorKhem Raj <raj.khem@gmail.com>
Thu, 16 Aug 2012 03:15:46 +0000 (20:15 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Aug 2012 16:44:57 +0000 (17:44 +0100)
commit43600df0d4efc976a9451163dd334b4763937932
tree82ff0d0de8ac3d6b014bb797c7fdbdde8060502f
parent73e2c12534856f14c1a94fb51874e9ba1655f07b
chrpath.bbclass: Account for case when ORIGIN is in RPATH

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>
meta/classes/chrpath.bbclass