From b107d16ba37720f49d6dfe655723236a9a32fe28 Mon Sep 17 00:00:00 2001 From: whoisxxx Date: Tue, 2 Jun 2020 15:29:34 +0800 Subject: [PATCH] Adapt configure option for RISC-V --- pcre.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pcre.spec b/pcre.spec index 349b592..52377ac 100644 --- a/pcre.spec +++ b/pcre.spec @@ -72,9 +72,15 @@ libtoolize -cf autoreconf -vif %build -%configure --enable-jit --enable-pcretest-libreadline --enable-utf \ - --enable-unicode-properties --enable-pcre8 --enable-pcre16 \ - --enable-pcre32 --disable-silent-rules +%configure \ +%ifarch riscv64 + --disable-jit \ +%else + --enable-jit \ +%endif + --enable-pcretest-libreadline --enable-utf \ + --enable-unicode-properties --enable-pcre8 --enable-pcre16 \ + --enable-pcre32 --disable-silent-rules %make_build %install