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>
This commit is contained in:
parent
f6763e90b2
commit
d6ef548c48
|
@ -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/-$//' ` \
|
||||
|
|
Loading…
Reference in New Issue