* [PATCH] fix mklibs error for 64bit targets
@ 2012-08-07 2:31 Jesse Zhang
2012-08-07 2:31 ` [PATCH] image-mklibs: pass correct libdir to mklibs Jesse Zhang
0 siblings, 1 reply; 3+ messages in thread
From: Jesse Zhang @ 2012-08-07 2:31 UTC (permalink / raw)
To: openembedded-core
mklibs should be passed a --libdir option, in order for it to work with 64bit
targets.
Jesse Zhang (1):
image-mklibs: pass correct libdir to mklibs
meta/classes/image-mklibs.bbclass | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
--
1.7.7.6
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] image-mklibs: pass correct libdir to mklibs
2012-08-07 2:31 [PATCH] fix mklibs error for 64bit targets Jesse Zhang
@ 2012-08-07 2:31 ` Jesse Zhang
2012-08-07 11:55 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Jesse Zhang @ 2012-08-07 2:31 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] image-mklibs: pass correct libdir to mklibs
2012-08-07 2:31 ` [PATCH] image-mklibs: pass correct libdir to mklibs Jesse Zhang
@ 2012-08-07 11:55 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-08-07 11:55 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2012-08-07 at 10:31 +0800, Jesse Zhang wrote:
> 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(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-07 12:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07 2:31 [PATCH] fix mklibs error for 64bit targets Jesse Zhang
2012-08-07 2:31 ` [PATCH] image-mklibs: pass correct libdir to mklibs Jesse Zhang
2012-08-07 11:55 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox