aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorryang <decatf@gmail.com>2018-06-15 14:59:05 -0400
committerryang <decatf@gmail.com>2018-06-15 14:59:05 -0400
commit36a1b9b653eb45ae33735f906d3e7ff6e4d61365 (patch)
tree3ddcc2306122d386394fa159b7f5eacbb339198d
parente4733f0f5e951d14c92013b1aceaae138eb6018c (diff)
downloadaports-36a1b9b653eb45ae33735f906d3e7ff6e4d61365.tar.bz2
aports-36a1b9b653eb45ae33735f906d3e7ff6e4d61365.tar.xz
main/nettle: disable arm neon
nettle checks the build machine for cpu features which ends up enabling neon but armv6 only supports up to vfpv2.
-rw-r--r--main/nettle/APKBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/nettle/APKBUILD b/main/nettle/APKBUILD
index dd16ccdd9a..c87acf3e1b 100644
--- a/main/nettle/APKBUILD
+++ b/main/nettle/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=nettle
pkgver=3.4
-pkgrel=0
+pkgrel=1
pkgdesc="A low-level cryptographic library"
url="http://www.lysator.liu.se/~nisse/nettle/"
arch="all"
@@ -17,6 +17,7 @@ source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
builddir="$srcdir/$pkgname-$pkgver"
build() {
+ [ "$CARCH" = "armhf" ] && local _ARM_NEON="--disable-arm-neon"
cd "$builddir"
./configure \
--build=$CBUILD \
@@ -28,7 +29,8 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-shared \
- --disable-openssl
+ --disable-openssl \
+ $_ARM_NEON
make
# strip comments in fields from .pc as it confuses pkgconf
sed -i -e 's/ \#.*//' *.pc