]> code.ossystems Code Review - openembedded-core.git/commit
libnewt: Fix cross link using autoconf detected AR
authorJason Wessel <jason.wessel@windriver.com>
Fri, 8 Jun 2012 16:43:47 +0000 (11:43 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jun 2012 12:47:20 +0000 (13:47 +0100)
commita02878d05e6b57f2455228785ea5f213a62ed976
treee6292c23f380a10d26f2ee37e95a86d0386cd097
parentf9c2d97d549e848127b741b967d90288c60f4d43
libnewt: Fix cross link using autoconf detected AR

If building on 32bit host and creating 64bit libraries, the target
package builds should not invoke the 32bit hosts's ar.  Specifically
you will get an error message like:

x86_64-linux-gcc    -m64 --sysroot=/opt/qemux86-64/tmp/sysroots/qemux86-64 -g -o test test.o libnewt.a -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lslang
libnewt.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/newt/files/cross_ar.patch [new file with mode: 0644]
meta/recipes-extended/newt/libnewt_0.52.14.bb