pciutils: fix musl build.

This commit is contained in:
Christian Neukirchen 2015-03-15 17:40:56 +01:00
parent 77440ff077
commit 4fa8f072dd
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'pciutils'
pkgname=pciutils
version=3.3.0
revision=5
revision=6
hostmakedepends="pkg-config"
makedepends="zlib-devel libkmod-devel"
depends="hwids"
@ -16,13 +16,13 @@ build_pie=yes
do_build() {
make OPT="${CFLAGS}" SHARED=no AR=${AR} \
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
HOST=${XBPS_TARGET_MACHINE%-musl}-none-linux ZLIB=yes \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
make clean
make OPT="${CFLAGS}" SHARED=yes AR=${AR} \
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
HOST=${XBPS_TARGET_MACHINE}-none-linux ZLIB=yes \
HOST=${XBPS_TARGET_MACHINE%-musl}-none-linux ZLIB=yes \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
}