[OE-core] [PATCH] libnewt: Fix cross link using autoconf detected AR

Richard Purdie richard.purdie at linuxfoundation.org
Mon Jun 11 12:51:20 UTC 2012


On Fri, 2012-06-08 at 11:43 -0500, Jason Wessel wrote:
> 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 at windriver.com>
> ---
>  meta/recipes-extended/newt/files/cross_ar.patch |   51 +++++++++++++++++++++++
>  meta/recipes-extended/newt/libnewt_0.52.14.bb   |    5 +-
>  2 files changed, 54 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-extended/newt/files/cross_ar.patch

Merged to master, thanks.

Richard





More information about the Openembedded-core mailing list