Commit 1a666fee authored by Natanael Copa's avatar Natanael Copa

main/libvirt: only build xen support on x86_64

parent 512ddae7
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkgname=libvirt pkgname=libvirt
pkgver=1.1.1 pkgver=1.1.1
_ver="${pkgver/_rc/-rc}" _ver="${pkgver/_rc/-rc}"
pkgrel=0 pkgrel=1
pkgdesc="A virtualization API for several hypervisor and container systems" pkgdesc="A virtualization API for several hypervisor and container systems"
url="http://libvirt.org/" url="http://libvirt.org/"
arch="all" arch="all"
...@@ -28,7 +28,7 @@ source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz ...@@ -28,7 +28,7 @@ source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz
uclibc-physmem.patch uclibc-physmem.patch
" "
if [ "$ALPINE_LIBC" != "eglibc" ]; then if [ "$CARCH" = "x86_64" ]; then
subpackages="$subpackages $pkgname-xen" subpackages="$subpackages $pkgname-xen"
makedepends="$makedepends xen-dev" makedepends="$makedepends xen-dev"
fi fi
...@@ -59,6 +59,10 @@ prepare() { ...@@ -59,6 +59,10 @@ prepare() {
build() { build() {
cd "$_builddir" cd "$_builddir"
export LDFLAGS="$LDFLAGS -lm" export LDFLAGS="$LDFLAGS -lm"
local _xen_opt=
if [ "$CARCH" = x86_64 ]; then
_xen_opt="--with-libxl"
fi
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -67,7 +71,7 @@ build() { ...@@ -67,7 +71,7 @@ build() {
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info \ --infodir=/usr/share/info \
--libexec=/usr/lib/"$pkgname" \ --libexec=/usr/lib/"$pkgname" \
--with-libxl \ $_xen_opt \
--with-polkit \ --with-polkit \
|| return 1 || return 1
make || return 1 make || return 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment