Subject: [alpine-aports] [PATCH] main/pcre2: fix JIT options on mips*

From: alpine-mips-patches <[email-masked]>
Date: Wed, 6 Dec 2018 06:36:01 +0000

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(-)

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 <[email-masked]>
 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" \
-- 
2.19.2

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---