summaryrefslogtreecommitdiff
path: root/recipes/eglibc/eglibc-package.bbclass
diff options
context:
space:
mode:
authorThomas Zimmermann <ml@vdm-design.de>2010-02-18 22:53:38 +0000
committerKhem Raj <raj.khem@gmail.com>2010-02-19 09:55:31 -0800
commit0a831e2cd1c27d30cd76ddada9a44a703ab60f41 (patch)
tree283124efc6fc0fa04d04883f5dacab3418266c5c /recipes/eglibc/eglibc-package.bbclass
parenteb0440f81bad74154588c761036bd3504161be14 (diff)
eglibc: unbash ldd and add libpthread_nonshared.a to -dev
* replace shebang of ldd by /bin/sh, so ldd doesn't depend on bash anymore. Tested with busybox sh. * added to do_configure_prepend because do_patch is only a python function * add libpthread_nonshared.a to eglibc-dev. Now it's possible to compile multithreaded applications on the device. Signed-off-by: Thomas Zimmermann <ml@vdm-design.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/eglibc/eglibc-package.bbclass')
-rw-r--r--recipes/eglibc/eglibc-package.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes/eglibc/eglibc-package.bbclass b/recipes/eglibc/eglibc-package.bbclass
index fcaba47f6e..3c33f9366d 100644
--- a/recipes/eglibc/eglibc-package.bbclass
+++ b/recipes/eglibc/eglibc-package.bbclass
@@ -48,7 +48,7 @@ FILES_ldd = "${bindir}/ldd"
FILES_libsegfault = "${base_libdir}/libSegFault*"
FILES_eglibc-extra-nss = "${base_libdir}/libnss*"
FILES_sln = "/sbin/sln"
-FILES_eglibc-dev_append = " ${libdir}/*.o ${bindir}/rpcgen ${libdir}/libc_nonshared.a"
+FILES_eglibc-dev_append = " ${libdir}/*.o ${bindir}/rpcgen ${libdir}/libc_nonshared.a ${libdir}/libpthread_nonshared.a"
FILES_nscd = "${sbindir}/nscd*"
FILES_eglibc-utils = "${bindir}/* ${sbindir}/*"
FILES_eglibc-gconv = "${libdir}/gconv/*"
@@ -76,6 +76,10 @@ EXTRA_OECONF += "${@get_eglibc_fpu_setting(bb, d)}"
OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}"
+do_configure_prepend() {
+ sed -e "s#@BASH@#/bin/sh#" -i ${S}/elf/ldd.bash.in
+}
+
do_install() {
oe_runmake install_root=${D} install
for r in ${rpcsvc}; do