[OE-core] [PATCH] lsof: Fix cross 32 -> 64bit ranlib host contamination problem

Richard Purdie richard.purdie at linuxfoundation.org
Wed Jun 13 10:43:03 UTC 2012


On Tue, 2012-06-12 at 16:42 -0500, Jason Wessel wrote:
> When building on a 32bit host OS and building 64 bit binaries,
> the cross ar and ranlib must be called, or you get an error
> as follows:
> 
>    x86_64-wrs-linux-gcc    -m64 --sysroot=/opt/build/tmp/sysroots/qemux86-64 -o lsof dfile.o dmnt.o dnode.o dproc.o dsock.o dstore.o arg.o main.o misc.o node.o print.o proc.o store.o usage.o util.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -L./lib -llsof
>    ./lib/liblsof.a: could not read symbols: Archive has no index; run ranlib to add one
>    collect2: error: ld returned 1 exit status
> 
> Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
> ---
>  meta/recipes-extended/lsof/lsof_4.85.bb |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard





More information about the Openembedded-core mailing list