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: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries
Date: Mon, 01 Jul 2013 12:08:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

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.

Paolo



reply via email to

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