From be48d3ea39e51e481059b08879aa9ed508c8dc4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 22 Aug 2017 09:24:33 +0200 Subject: [PATCH] pcre: fix mips* build --- srcpkgs/pcre/template | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/srcpkgs/pcre/template b/srcpkgs/pcre/template index 61abfaa882..f405df68f4 100644 --- a/srcpkgs/pcre/template +++ b/srcpkgs/pcre/template @@ -22,6 +22,15 @@ post_install() { if [ "$CROSS_BUILD" ]; then hostmakedepends="automake libtool" pre_configure() { + # Mips needs a hint if an FPU is available or not + case "$XBPS_TARGET_MACHINE" in + mips-musl|mipsel-musl) + CFLAGS="-DSLJIT_IS_FPU_AVAILABLE=0" + ;; + mipselhf-musl) + CFLAGS="-DSLJIT_IS_FPU_AVAILABLE=1" + ;; + esac autoreconf -fi } fi