summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/pseudo/pseudo.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-15 16:00:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-15 17:31:59 +0100
commitf562e2a393d69312281ceda1d2b2b0af03a8c8b5 (patch)
tree5a09baf756dc6f17a11f60793d4661a418eae110 /meta/recipes-devtools/pseudo/pseudo.inc
parent5c006a460ff9c838523a35f198b8746bd8719ab2 (diff)
downloadpoky-f562e2a393d69312281ceda1d2b2b0af03a8c8b5.tar.gz
pseudo: Ensure the correct libraries are used at runtime
There can be a conflict between the nativesdk libc and the host system's libc. It is assumed the nativesdk version is of an equal or higher version. This is a particular issue for pseudo if its loading a system binary since the system's libc might be used of an older verison which would then confuse libpseudo.so when loaded as a preload. To avoid this, set LD_LIBRARY_PATH so the nativesdk libc is always used. Since we now use --without-rpath, we can remove the MAKEOPTS RPATH workaround. [YOCTO #2299] (From OE-Core rev: a481fe3b9883aa744be3253e2b4b27e6e46eb059) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/pseudo/pseudo.inc')
-rw-r--r--meta/recipes-devtools/pseudo/pseudo.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc
index d710058d59..6ac1301b14 100644
--- a/meta/recipes-devtools/pseudo/pseudo.inc
+++ b/meta/recipes-devtools/pseudo/pseudo.inc
@@ -13,10 +13,7 @@ FILES_${PN} = "${libdir}/pseudo/lib*/libpseudo.so ${bindir}/* ${localstatedir}/p
13FILES_${PN}-dbg += "${libdir}/pseudo/lib*/.debug" 13FILES_${PN}-dbg += "${libdir}/pseudo/lib*/.debug"
14PROVIDES += "virtual/fakeroot" 14PROVIDES += "virtual/fakeroot"
15 15
16# In the nativesdk case, we'll already search the searchpaths
17# pseudo tries to build in so override RPATH
18MAKEOPTS = "" 16MAKEOPTS = ""
19MAKEOPTS_virtclass-nativesdk = "'RPATH='"
20 17
21inherit siteinfo 18inherit siteinfo
22 19
@@ -78,6 +75,8 @@ do_install_append_virtclass-nativesdk () {
78 mkdir -p ${D}${prefix}/lib/pseudo/lib 75 mkdir -p ${D}${prefix}/lib/pseudo/lib
79 cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/. 76 cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/.
80 fi 77 fi
78
79 create_wrapper ${D}${bindir}/pseudo LD_LIBRARY_PATH=${base_libdir}:${libdir}
81} 80}
82 81
83BBCLASSEXTEND = "native nativesdk" 82BBCLASSEXTEND = "native nativesdk"