package.bbclass: change RPATHs for nativesdk packages

Change binaries RPATHs, to include $ORIGIN, to make them relocatable.

(From OE-Core rev: f6362c5248914485fc8bf3c3f0ca6cc962bf753e)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Laurentiu Palcu 2012-07-31 11:49:38 +03:00 committed by Richard Purdie
parent 476ced15c2
commit e3a13b8d93
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,7 @@
inherit packagedata
inherit prserv
inherit chrpath
PKGD = "${WORKDIR}/package"
PKGDEST = "${WORKDIR}/packages-split"
@ -444,6 +445,10 @@ python perform_packagecopy () {
subprocess.call('rm -rf %s/*' % (dvar), shell=True)
# Preserve sparse files and hard links
subprocess.call('tar -cf - -C %s -ps . | tar -xf - -C %s' % (dest, dvar), shell=True)
# replace RPATHs for the nativesdk binaries, to make them relocatable
if bb.data.inherits_class('nativesdk', d):
rpath_replace (dvar, d)
}
# We generate a master list of directories to process, we start by