~alpine/aports

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

alpine-mips-patches <info@mobile-stream.com>
Details
Message ID
<20181206065804.ECF015A9A9@mx12.valuehost.ru>
Sender timestamp
1544078161
DKIM signature
missing
Download raw message
Patch: +6 -1
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 <jakub@jirutka.cz>
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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)