[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:18:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
Il 01/07/2013 12:10, 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() ?
No, for each target directory.
Paolo
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Stefan Hajnoczi, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Paolo Bonzini, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Paolo Bonzini, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Michael Tokarev, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Andreas Färber, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Michael Tokarev, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Paolo Bonzini, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Michael Tokarev, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Paolo Bonzini, 2013/07/01
- Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries, Michael Tokarev, 2013/07/01