diff options
author | Jesse Zhang <sen.zhang@windriver.com> | 2012-08-07 10:31:57 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-07 12:56:34 +0100 |
commit | d6ef548c48968d16f7e24dec7452ddb455c26d46 (patch) | |
tree | db854198bbdafa678ad6d5029c99b674fff9e342 /meta/classes/image-mklibs.bbclass | |
parent | f6763e90b23d1e609b0428ca3dfc81d824a62ea4 (diff) | |
download | poky-d6ef548c48968d16f7e24dec7452ddb455c26d46.tar.gz |
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:
(From OE-Core rev: d2cd2ccea8bc4d110647ba3bd202772e5407000a)
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-mklibs.bbclass')
-rw-r--r-- | 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 762381520e..66b0f5251e 100644 --- a/meta/classes/image-mklibs.bbclass +++ b/meta/classes/image-mklibs.bbclass | |||
@@ -38,6 +38,7 @@ mklibs_optimize_image_doit() { | |||
38 | 38 | ||
39 | mklibs -v \ | 39 | mklibs -v \ |
40 | --ldlib ${dynamic_loader} \ | 40 | --ldlib ${dynamic_loader} \ |
41 | --libdir ${baselib} \ | ||
41 | --sysroot ${PKG_CONFIG_SYSROOT_DIR} \ | 42 | --sysroot ${PKG_CONFIG_SYSROOT_DIR} \ |
42 | --root ${IMAGE_ROOTFS} \ | 43 | --root ${IMAGE_ROOTFS} \ |
43 | --target `echo ${TARGET_PREFIX} | sed 's/-$//' ` \ | 44 | --target `echo ${TARGET_PREFIX} | sed 's/-$//' ` \ |