diff --git a/srcpkgs/libvirt/template b/srcpkgs/libvirt/template index 3c7819c0a44..c85f194ce59 100644 --- a/srcpkgs/libvirt/template +++ b/srcpkgs/libvirt/template @@ -23,9 +23,12 @@ makedepends="readline-devel>=6.3 libcap-ng-devel libnl3-devel attr-devel libpciaccess-devel avahi-libs-devel polkit-devel yajl-devel python-devel libssh2-devel libcap-ng-devel fuse-devel" -if [ "$XBPS_MACHINE" = "i686" -o "$XBPS_MACHINE" = "x86_64" ]; then +if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then configure_args+=" --with-xen" makedepends+=" libnuma-devel xen-devel" +elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then + configure_args+=" --without-xen" + makedepends+=" libnuma-devel" else configure_args+=" --without-xen" fi