From cebf636de92a265fff530fa22eeaf3bae8bd75ca Mon Sep 17 00:00:00 2001 From: psykose Date: Tue, 18 Oct 2022 04:29:45 +0000 Subject: [PATCH] testing/libntl: fix build on riscv64 --- testing/libntl/APKBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/testing/libntl/APKBUILD b/testing/libntl/APKBUILD index 858b2171d9a..16626907a69 100644 --- a/testing/libntl/APKBUILD +++ b/testing/libntl/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Grigory Kirillov pkgname=libntl pkgver=11.5.1 -pkgrel=0 +pkgrel=1 pkgdesc="Library for doing number theory" url="https://libntl.org" arch="all" @@ -12,6 +12,14 @@ source="https://libntl.org/ntl-$pkgver.tar.gz" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" builddir="$srcdir/ntl-$pkgver/src" +prepare() { + default_prepare + + cd libtool-origin + update_config_guess + update_config_sub +} + build() { export CXXFLAGS="${CXXFLAGS/-Os/-O2}" # gotta go fast