]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: add explicit linkage to xenstore library
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 23 Jan 2018 18:17:13 +0000 (18:17 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 25 Jan 2018 09:30:54 +0000 (09:30 +0000)
Since

  commit eee7bd4ecb5a3e83ed47cc89bf0dc4866b4858af
  Author: Joao Martins <joao.m.martins@oracle.com>
  Date:   Tue Jul 26 00:45:14 2016 +0100

    libxl: implement virDomainBlockStats

    Introduce initial support for domainBlockStats API

the libxl driver calls a couple of xenstore APIs, so it must explicitly
link to this library rather than rely on indirect linkage via libxl or
other xen libraries.

Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
m4/virt-driver-libxl.m4

index e6dbfef686229af127ebe9c52e869fd728a728d7..2cc1c062d87ab6e87cac97d4afd3c2ebd89358d4 100644 (file)
@@ -75,9 +75,9 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_LIBXL], [
     dnl (since Xen 4.7) if not then assume it is in libxenctrl
     dnl (as it was for 4.6 and earler)
     AC_CHECK_LIB([xentoollog], [xtl_createlogger_stdiostream], [
-      LIBXL_LIBS="$LIBXL_LIBS -lxentoollog"
+      LIBXL_LIBS="$LIBXL_LIBS -lxenstore -lxentoollog"
     ],[
-      LIBXL_LIBS="$LIBXL_LIBS -lxenctrl"
+      LIBXL_LIBS="$LIBXL_LIBS -lxenstore -lxenctrl"
     ])
 
     dnl Check if libxl_domain_config_from_json is available for domXML to