Commit 36a1b9b6 authored by Robert Y's avatar Robert Y

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.
parent e4733f0f
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=nettle pkgname=nettle
pkgver=3.4 pkgver=3.4
pkgrel=0 pkgrel=1
pkgdesc="A low-level cryptographic library" pkgdesc="A low-level cryptographic library"
url="http://www.lysator.liu.se/~nisse/nettle/" url="http://www.lysator.liu.se/~nisse/nettle/"
arch="all" arch="all"
...@@ -17,6 +17,7 @@ source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz ...@@ -17,6 +17,7 @@ source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
builddir="$srcdir/$pkgname-$pkgver" builddir="$srcdir/$pkgname-$pkgver"
build() { build() {
[ "$CARCH" = "armhf" ] && local _ARM_NEON="--disable-arm-neon"
cd "$builddir" cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
...@@ -28,7 +29,8 @@ build() { ...@@ -28,7 +29,8 @@ build() {
--infodir=/usr/share/info \ --infodir=/usr/share/info \
--localstatedir=/var \ --localstatedir=/var \
--enable-shared \ --enable-shared \
--disable-openssl --disable-openssl \
$_ARM_NEON
make make
# strip comments in fields from .pc as it confuses pkgconf # strip comments in fields from .pc as it confuses pkgconf
sed -i -e 's/ \#.*//' *.pc sed -i -e 's/ \#.*//' *.pc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment