Re: [PATCH] daemon: Don't just include admin RPC

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

 



On 06/17/2015 10:10 AM, Michal Privoznik wrote:
> So, it's a little paradox that we use the file twice. Firstly to build
> libvirt-admin.la (a client side of the Admin API), then once again to
> build the server side. Well, the problem is, this does not play nicely
> with the distclean since the file is generated. So while it's removed
> in the src/ the distclean running in daemon/ will not find the file
> and fail. The file is needed because it contains the RPC wrappers. So
> let's leave the client code as is and from the daemon/ just link the
> client library. The linker will find desired symbols and use them.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  daemon/Makefile.am | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

ACK.

> 
> diff --git a/daemon/Makefile.am b/daemon/Makefile.am
> index b9c089d..d3fc029 100644
> --- a/daemon/Makefile.am
> +++ b/daemon/Makefile.am
> @@ -128,8 +128,7 @@ libvirtd_conf_la_LIBADD = $(LIBXML_LIBS)
>  
>  noinst_LTLIBRARIES += libvirtd_admin.la
>  libvirtd_admin_la_SOURCES = \
> -		admin_server.c admin_server.h \
> -		../src/admin/admin_protocol.c
> +		admin_server.c admin_server.h

Indeed, any makefile dependency on ../xxx is liable to cause distclean
chaos.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]