[arch-commits] Commit in pari/trunk (PKGBUILD)
Gaëtan Bisson
bisson at archlinux.org
Sat Apr 25 20:33:08 UTC 2020
Date: Saturday, April 25, 2020 @ 20:33:03
Author: bisson
Revision: 621052
improve interpreter speed by a factor of two
Modified:
pari/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-25 20:03:59 UTC (rev 621051)
+++ PKGBUILD 2020-04-25 20:33:03 UTC (rev 621052)
@@ -2,7 +2,7 @@
pkgname=pari
pkgver=2.11.4
-pkgrel=1
+pkgrel=2
pkgdesc='Computer algebra system designed for fast computations in number theory'
url='https://pari.math.u-bordeaux.fr/'
license=('GPL')
@@ -20,6 +20,12 @@
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Upstream Bill Allombert recommends linking gp statically against
+ # libpari.so with -flto to recover speed losses incurred when enabling
+ # pthread support. That's also what he now does for the Debian package.
+ export CFLAGS+=' -flto'
+
./Configure \
--prefix=/usr \
--with-readline \
@@ -38,4 +44,7 @@
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
ln -sf gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1
+
+ cd Olinux-x86_64
+ make DESTDIR="${pkgdir}" install-bin-sta
}
More information about the arch-commits
mailing list