]> code.ossystems Code Review - openembedded-core.git/commit
lsof: Fix cross 32 -> 64bit ranlib host contamination problem
authorJason Wessel <jason.wessel@windriver.com>
Tue, 12 Jun 2012 21:42:31 +0000 (16:42 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Jun 2012 10:42:46 +0000 (11:42 +0100)
commit5c257ee55f9e0dd66fc1bbd6e9c08918e8820178
tree54f82063386e20bcd910227b19a924b12d2914ee
parent6f0d830ed047f700702645d454054dfd6fea6f25
lsof: Fix cross 32 -> 64bit ranlib host contamination problem

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@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/lsof/lsof_4.85.bb