qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC/RFT PATCH] build: replace weak symbols with a stat


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC/RFT PATCH] build: replace weak symbols with a static library
Date: Fri, 16 Nov 2012 17:06:10 +0000

On 16 November 2012 16:54, Peter Maydell <address@hidden> wrote:
> And it doesn't build on Linux:

Adding libqemustub.a to the vscclient$(EXESUF) prerequisites fixes
that, and then it fails on qemu-system-arm:

  LINK  arm-softmmu/qemu-system-arm
../qmp.o: In function `qmp_query_cpu_definitions':
/home/petmay01/linaro/qemu-from-laptop/qemu/qmp.c:476: undefined
reference to `arch_query_cpu_definitions'
collect2: ld returned 1 exit status

This turns out to be the same problem as the MacOS failure:
as well as building the libqemustub.a in the root directory
we also try to create an empty libqemustub.a in arm-softmmu/
(or whatever the target subdir is). On MacOS this fails
because ar doesn't allow an empty list of objects. On Linux
it succeeds, but then the final link of the qemu executable
fails because we use the emtpy archive rather than the one
with all the stub objects.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]