summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorJesse Zhang <sen.zhang@windriver.com>2012-08-07 10:31:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-07 12:54:22 +0100
commitd2cd2ccea8bc4d110647ba3bd202772e5407000a (patch)
treed9db0c945c520fe3249b4433c304c821af8a3de4 /meta/classes
parent90540692c40719b757b80bdc6e78e679a3df83a7 (diff)
downloadopenembedded-core-d2cd2ccea8bc4d110647ba3bd202772e5407000a.tar.gz
openembedded-core-d2cd2ccea8bc4d110647ba3bd202772e5407000a.tar.bz2
openembedded-core-d2cd2ccea8bc4d110647ba3bd202772e5407000a.zip
image-mklibs: pass correct libdir to mklibs
libdir should be specified, or else mklibs won't work for 64bit targets. It wouldn't be able to find the libs. Traceback (most recent call last): File "<build>/bitbake_build/tmp/sysroots/i686-linux/usr/bin/x86_64-wrs-linux/mklibs", line 553, in <module> header = elf_header(find_lib(libraries.copy().pop())) File "<build>/bitbake_build/tmp/sysroots/i686-linux/usr/bin/x86_64-wrs-linux/mklibs", line 89, in elf_header raise Exception("Cannot find lib: " + obj) Exception: Cannot find lib: Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image-mklibs.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass
index 762381520e..66b0f5251e 100644
--- a/meta/classes/image-mklibs.bbclass
+++ b/meta/classes/image-mklibs.bbclass
@@ -38,6 +38,7 @@ mklibs_optimize_image_doit() {
mklibs -v \
--ldlib ${dynamic_loader} \
+ --libdir ${baselib} \
--sysroot ${PKG_CONFIG_SYSROOT_DIR} \
--root ${IMAGE_ROOTFS} \
--target `echo ${TARGET_PREFIX} | sed 's/-$//' ` \