Alex Zeffertt wrote:
Hi all,
The attached patch against v0.4 fixes the build when --enable-xenctrl is used.
If this configure option is used vhostmd does not link against libvirt or virt-util.o, but a few bits of code were assuming that these were always linked in.
Ah, right, libvirt support is disabled if "--enable-xenctrl" is specified.
Please could you consider this patch for inclusion in the vhostmd project.
Regards,
Alex Zeffertt Fix build when "./configure --enable-xenctrl" is used.
This option disables the use of libvirt. Instead libxc gets used to find out stuff about VMs.
If this option is used then virt-util.c does not get built. This patch removes the linker dependencies on virt-util.o when --enable-xenctrl is used.
Signed-off-by:
diff -urN a/configure.ac b/configure.ac --- a/configure.ac 2009-12-09 09:41:52.000000000 -0500 +++ b/configure.ac 2010-01-07 06:18:44.000000000 -0500 @@ -55,7 +55,8 @@ AC_ARG_ENABLE([xenctrl], [ --enable-xenctrl use xenctrl specific vm enumeration instead of libvirt], [case "${enableval}" in - yes) xenctrl=true + yes) xenctrl=true + CFLAGS="$CFLAGS -DXENCTRL"
There was a tab mixed with spaces here that I fixed. Patch committed. Thanks! Regards, Jim -- To unsubscribe, e-mail: vhostmd+unsubscribe@opensuse.org For additional commands, e-mail: vhostmd+help@opensuse.org