From: Jesse Zhang <sen.zhang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH] image-mklibs: pass correct libdir to mklibs
Date: Tue, 7 Aug 2012 10:31:57 +0800 [thread overview]
Message-ID: <1344306717-6352-2-git-send-email-sen.zhang@windriver.com> (raw)
In-Reply-To: <1344306717-6352-1-git-send-email-sen.zhang@windriver.com>
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>
---
meta/classes/image-mklibs.bbclass | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass
index 7623815..66b0f52 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/-$//' ` \
--
1.7.7.6
next prev parent reply other threads:[~2012-08-07 2:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 2:31 [PATCH] fix mklibs error for 64bit targets Jesse Zhang
2012-08-07 2:31 ` Jesse Zhang [this message]
2012-08-07 11:55 ` [PATCH] image-mklibs: pass correct libdir to mklibs Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344306717-6352-2-git-send-email-sen.zhang@windriver.com \
--to=sen.zhang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox