From 44687e6dc65f1ba81fa1134dceeafcf0671a5c31 Mon Sep 17 00:00:00 2001 From: misaka00251 Date: Fri, 15 Sep 2023 19:52:48 +0800 Subject: [PATCH] Fix build on riscv64 --- openresty-pcre.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openresty-pcre.spec b/openresty-pcre.spec index e481c39..365eea5 100644 --- a/openresty-pcre.spec +++ b/openresty-pcre.spec @@ -1,6 +1,6 @@ Name: openresty-pcre Version: 8.44 -Release: 1%{?dist} +Release: 2 Summary: Perl-compatible regular expression library for OpenResty Group: System Environment/Libraries @@ -67,7 +67,11 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix} \ --libdir=%{pcre_prefix}/lib \ --disable-cpp \ +%ifarch riscv64 + --disable-jit \ +%else --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -80,7 +84,11 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix_asan} \ --libdir=%{pcre_prefix_asan}/lib \ --disable-cpp \ +%ifarch riscv64 + --disable-jit \ +%else --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -131,5 +139,8 @@ rm -rf %{buildroot} %{pcre_prefix_asan}/include/*.h %changelog +* Fri Sep 15 2023 misaka00251 - 8.44-2 +- Fix build on riscv64 + * Thu Jul 22 2021 Fu Changjie 8.42-1 - Package init with openresty-pcre 8.42, without disable asan -- Gitee