From 0392c8d1619b893ccbdad48dab55f95730d89ab6 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Wed, 21 Sep 2016 21:22:09 +0200 Subject: [PATCH] python-crypto: fix cross build and gcc6 build --- srcpkgs/python-crypto/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python-crypto/template b/srcpkgs/python-crypto/template index 6a6625150e2..61dee2b39dc 100644 --- a/srcpkgs/python-crypto/template +++ b/srcpkgs/python-crypto/template @@ -1,7 +1,7 @@ # Template file for 'python-crypto' pkgname=python-crypto version=2.6.1 -revision=5 +revision=6 wrksrc="pycrypto-${version}" replaces="pycrypto>=0" build_style=python-module @@ -20,8 +20,10 @@ checksum=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c pre_build() { if [ "$CROSS_BUILD" ]; then sed -e "s|'/usr/include/'|''|g" -i setup.py + CC= CFLAGS= ./configure ${configure_args} --host=${XBPS_CROSS_TRIPLET} + else + CC="$CC" CFLAGS="$CFLAGS" ./configure ${configure_args} fi - CC= CFLAGS= ./configure ${configure_args} } python3.4-crypto_package() {