summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2012-06-12 16:42:31 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-13 11:57:22 +0100
commit9f47c0f62e7db5a0f3f5d09d5a02f128369db9e0 (patch)
treeaed9bcc8a486e126277cc8018103a9811dd27818 /meta
parent1a9ad7f4d72488c9aefe0c6521bac26eddbd4416 (diff)
downloadpoky-9f47c0f62e7db5a0f3f5d09d5a02f128369db9e0.tar.gz
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 (From OE-Core rev: 5c257ee55f9e0dd66fc1bbd6e9c08918e8820178) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/lsof/lsof_4.85.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-extended/lsof/lsof_4.85.bb b/meta/recipes-extended/lsof/lsof_4.85.bb
index 8f25e24a50..58237256af 100644
--- a/meta/recipes-extended/lsof/lsof_4.85.bb
+++ b/meta/recipes-extended/lsof/lsof_4.85.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Lsof is a Unix-specific diagnostic tool. \
3Its name stands for LiSt Open Files, and it does just that." 3Its name stands for LiSt Open Files, and it does just that."
4SECTION = "devel" 4SECTION = "devel"
5LICENSE = "BSD" 5LICENSE = "BSD"
6PR = "r0" 6PR = "r1"
7 7
8SRC_URI = "ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${PV}.tar.bz2" 8SRC_URI = "ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${PV}.tar.bz2"
9 9
@@ -29,6 +29,8 @@ LSOF_OS_libc-glibc = "linux"
29export LSOF_INCLUDE = "${STAGING_INCDIR}" 29export LSOF_INCLUDE = "${STAGING_INCDIR}"
30 30
31do_configure () { 31do_configure () {
32 export LSOF_AR="${AR} cr"
33 export LSOF_RANLIB="${RANLIB}"
32 yes | ./Configure ${LSOF_OS} 34 yes | ./Configure ${LSOF_OS}
33} 35}
34 36