qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries


From: Michael Tokarev
Subject: Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries
Date: Mon, 01 Jul 2013 14:10:21 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130529 Icedove/17.0.5

01.07.2013 14:08, Paolo Bonzini wrote:
> Il 30/06/2013 17:23, Michael Tokarev ha scritto:
>>> Perhaps we can instead use something like
>>>>
>>>> common.o: $(patsubst %,../%, $(common-obj-y))
>>>>    $(LD) -r -o $@ $^
>>>>
>>>> and then link common.o into the QEMU target.  Libtool can also be used
>>>> to abstract "ld -r".  Making libtool mandatory wouldn't be a problem IMO
>>>> (we'd need it anyway for modules) as long as you do not need libtool to
>>>> start QEMU or gdb from the build directory.
>> I think this will mean that whole common.o will have to be linked
>> into each executable which uses it, even if some executables are
>> only using just one function from whole lot of .o files.
> 
> This would be a different common.o for each directory.

Like util/common.o which requires -lrt and -lutil even if a given
app does not use openpty() or timer_create() ?

Thanks,

/mjt



reply via email to

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