libtorrent: fix build on ppc32 and mips

[ci skip]
This commit is contained in:
q66 2019-12-03 18:40:42 +01:00 committed by Helmut Pozimski
parent 3092073cb6
commit 2610e0d431

View file

@ -14,6 +14,12 @@ homepage="https://github.com/rakshasa/${pkgname}"
distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
checksum=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
# https://github.com/rakshasa/rtorrent/issues/156
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*|mips*) configure_args+=" --disable-instrumentation";;
esac
pre_configure() {
autoreconf -fi
sed -e 's,test "$cross_compiling" = yes, false,' -i configure