Re: [Qemu-devel] [Makefile] Compiling Qemu to dynamic library

2015-01-11 Thread Halsey Pian
! Best Regards Halsey Pian From: Halsey Pian [mailto:halsey.p...@gmail.com] Sent: 2015年1月8日 12:03 To: qemu-devel@nongnu.org Subject: RE: [Qemu-devel] [Makefile] Compiling Qemu to dynamic library Hi All, During building this so library, I found that there are many functions with same

Re: [Qemu-devel] [Makefile] Compiling Qemu to dynamic library

2015-01-08 Thread Peter Maydell
On 8 January 2015 at 04:02, Halsey Pian wrote: > ./stubs/slirp.c:void slirp_pollfds_fill(GArray *pollfds, uint32_t *timeout) > > ./main-loop.c:slirp_pollfds_fill(gpollfds, &timeout); > Do you know when qemustub should be used? libqemustub.a is only used for > qemu-img, qemu-nbd, qemu-io, but

Re: [Qemu-devel] [Makefile] Compiling Qemu to dynamic library

2015-01-07 Thread Halsey Pian
Pian From: Halsey Pian [mailto:halsey.p...@gmail.com] Sent: 2015年1月7日 16:37 To: qemu-devel@nongnu.org Subject: [Qemu-devel] [Makefile] Compiling Qemu to dynamic library Dear All, Recently, I would try to compile qemu to a so in order to call qemu internal functions in my program, I’m tryin

[Qemu-devel] [Makefile] Compiling Qemu to dynamic library

2015-01-07 Thread Halsey Pian
Dear All, Recently, I would try to compile qemu to a so in order to call qemu internal functions in my program, I'm trying to do this by steps, 1. Add rules in qemu-2.1.2/ rules.mak %.so: $(call quiet-command,rm -f $@ && $(LINKPROG) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAG