summaryrefslogtreecommitdiff
path: root/repo/qemu/qemu-static.xibuild.broken
blob: 7c61e7a94f9af47bb27e4c57ba40280fcc53d672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

DESC="Static builds of qemu for chrooting"

build () {
    cd "$BUILD_ROOT"/build-static
    CFLAGS="$CFLAGS -O2" "$BUILD_ROOT"/configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --libexecdir=/usr/libexec \
        --localstatedir=/var \
        --disable-glusterfs \
        --disable-xen \
		--disable-glusterfs \
		--disable-debug-info \
		--disable-bsd-user \
		--disable-werror \
		--disable-xen \
		--enable-kvm \
		--enable-seccomp \
        --enable-linux-user \
		--disable-system \
		--static \
		--disable-docs \
		--disable-sdl \
		--disable-gtk \
		--disable-spice \
		--disable-tools \
		--disable-guest-agent \
		--disable-guest-agent-msi \
		--disable-curses \
		--disable-curl \
		--disable-gnutls \
		--disable-gcrypt \
		--disable-nettle \
		--disable-cap-ng \
		--disable-brlapi \
		--disable-mpath \
		--disable-libnfs \
		--disable-numa \
		--disable-capstone && \
	make ARFLAGS="rc" || exit 1
}

package () {
	cd "$BUILD_ROOT"/build-static
	make DESTDIR="$PKG_DEST" install
}