summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-08-17 13:38:10 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-17 13:06:42 +0100
commit21049ec9644510a81aba748ad81fb6a73a711f21 (patch)
tree1bdeb6919cd141996578e05b3d430ea8c248a8df /meta/classes
parent1b6019086c4242c550b4e0551c7b5d206a0d52e1 (diff)
downloadpoky-21049ec9644510a81aba748ad81fb6a73a711f21.tar.gz
package.bbclass: change RPATHs for cross-canadian binaries
When building the meta-toolchain, the binaries didn't get relocatable RPATHs. They were hardcoded to the default path. Hence, if one had already installed one SDK in the default path and one in another location, the later toolchain's binaries would search and load libraries from the first location, ending in a "Segmentation Fault". [YOCTO #2927] (From OE-Core rev: b40a03c43d5d9d738a9aa5b43b2ecfe74fc95018) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index d122cd9f8f..278f0f0ea9 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -448,7 +448,7 @@ python perform_packagecopy () {
448 subprocess.call('tar -cf - -C %s -ps . | tar -xf - -C %s' % (dest, dvar), shell=True) 448 subprocess.call('tar -cf - -C %s -ps . | tar -xf - -C %s' % (dest, dvar), shell=True)
449 449
450 # replace RPATHs for the nativesdk binaries, to make them relocatable 450 # replace RPATHs for the nativesdk binaries, to make them relocatable
451 if bb.data.inherits_class('nativesdk', d): 451 if bb.data.inherits_class('nativesdk', d) or bb.data.inherits_class('cross-canadian', d):
452 rpath_replace (dvar, d) 452 rpath_replace (dvar, d)
453} 453}
454 454