summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc
diff options
context:
space:
mode:
authorBogdan Marinescu <bogdan.a.marinescu@intel.com>2013-01-30 18:26:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-01 15:54:31 +0000
commit947e95b67c0d3285b1e043ea81a0b9d217d56d2e (patch)
tree4767b4dbb121ff548c70ca2fd5f523b8e8b517d1 /meta/recipes-core/eglibc
parent703b70c98a86771a891b46382f3ee20c4ef93f39 (diff)
downloadpoky-947e95b67c0d3285b1e043ea81a0b9d217d56d2e.tar.gz
eglibc: don't list the same path twice in RTLDLIST
Before modifying RTLDLIST in ldd, make sure that it doesn't already contain the right path, thus avoiding duplicate entries in RTLDLIST. [YOCTO #2655] (From OE-Core rev: 3cef117439aea2d724e92dcb0f862f1cc8e8bfa5) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/eglibc')
-rw-r--r--meta/recipes-core/eglibc/eglibc_2.17.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-core/eglibc/eglibc_2.17.bb b/meta/recipes-core/eglibc/eglibc_2.17.bb
index c1cae4f214..7bdb267eb1 100644
--- a/meta/recipes-core/eglibc/eglibc_2.17.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.17.bb
@@ -1,6 +1,6 @@
1require eglibc.inc 1require eglibc.inc
2 2
3PR = "r1" 3PR = "r2"
4 4
5DEPENDS += "gperf-native kconfig-frontends-native" 5DEPENDS += "gperf-native kconfig-frontends-native"
6 6
@@ -143,8 +143,11 @@ do_compile () {
143 echo "Adjust ldd script" 143 echo "Adjust ldd script"
144 if [ -n "${RTLDLIST}" ] 144 if [ -n "${RTLDLIST}" ]
145 then 145 then
146 sed -i ${B}/elf/ldd -e 's#^\(RTLDLIST=\)"\(.*\)"$#\1\2#' 146 prevrtld=`cat ${B}/elf/ldd | grep "^RTLDLIST=" | sed 's#^RTLDLIST=\(.*\)$#\1#'`
147 sed -i ${B}/elf/ldd -e 's#^\(RTLDLIST=\)\(.*\)$#\1"${RTLDLIST} \2"#' 147 if [ "${prevrtld}" != "${RTLDLIST}" ]
148 then
149 sed -i ${B}/elf/ldd -e "s#^RTLDLIST=.*\$#RTLDLIST=\"${prevrtld} ${RTLDLIST}\"#"
150 fi
148 fi 151 fi
149 152
150} 153}