From 5e501b0e9403a912350ade906bd3f7396c505d70 Mon Sep 17 00:00:00 2001 From: alpine-mips-patches Date: Thu, 6 Dec 2018 06:36:01 +0000 Subject: main/pcre2: fix JIT options on mips* 1) Disable use of CFC1 (FPU instruction) on all soft-float mips*. 2) Enable MIPS32 ISA (default is MIPS III) on 32-bit mips{el}. --- main/pcre2/APKBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main/pcre2/APKBUILD') diff --git a/main/pcre2/APKBUILD b/main/pcre2/APKBUILD index fdbd734b4f..e43690696e 100644 --- a/main/pcre2/APKBUILD +++ b/main/pcre2/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Jakub Jirutka pkgname=pcre2 pkgver=10.32 -pkgrel=0 +pkgrel=1 pkgdesc="Perl-compatible regular expression library" url="http://pcre.sourceforge.net/" arch="all" @@ -22,6 +22,11 @@ esac build() { cd "$builddir" + case "$CARCH" in + mips64*) export CPPFLAGS="$CPPFLAGS -DSLJIT_IS_FPU_AVAILABLE=0";; + mips*) export CPPFLAGS="$CPPFLAGS -DSLJIT_IS_FPU_AVAILABLE=0 -DSLJIT_MIPS_R1=1";; + esac + # Note: Forced -O3 is recommended (needed?) for Julia. ./configure \ CFLAGS="$CFLAGS -O3" \ -- cgit v1.2.3