Mail archive
alpine-aports

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

From: alpine-mips-patches <info_at_mobile-stream.com>
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
_at_@ -2,7 +2,7 @@
 # Maintainer: Jakub Jirutka <jakub_at_jirutka.cz>
 pkgname=pcre2
 pkgver=10.32
-pkgrel=0
+pkgrel=1
 pkgdesc="Perl-compatible regular expression library"
 url="http://pcre.sourceforge.net/"
 arch="all"
_at_@ -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:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Dec 06 2018 - 06:36:01 UTC