diff --git a/openresty-pcre.spec b/openresty-pcre.spec index 617157bb8ade90b50e689d391261be396b182fd7..6190afc2ca8a7e10e99c429d22423d52f294639f 100644 --- a/openresty-pcre.spec +++ b/openresty-pcre.spec @@ -1,6 +1,6 @@ Name: openresty-pcre Version: 8.44 -Release: 2 +Release: 3 Summary: Perl-compatible regular expression library for OpenResty Group: System Environment/Libraries @@ -59,6 +59,11 @@ This is the clang AddressSanitizer version. %patch99 -p1 +%ifarch loongarch64 riscv64 +%_update_config_guess +%_update_config_sub +%endif + %build bash ./copy-dir.sh export CC="ccache gcc -fdiagnostics-color=always" @@ -67,7 +72,9 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix} \ --libdir=%{pcre_prefix}/lib \ --disable-cpp \ +%ifnarch loongarch64 riscv64 --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -80,7 +87,9 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix_asan} \ --libdir=%{pcre_prefix_asan}/lib \ --disable-cpp \ +%ifnarch loongarch64 riscv64 --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -131,6 +140,9 @@ rm -rf %{buildroot} %{pcre_prefix_asan}/include/*.h %changelog +* Mon Aug 14 2023 yangchenguang - 8.44-3 +- Fix loongarch64 and riscv64 build failed + * Thu Mar 24 2022 wulei - 8.44-2 - Delete {?dist}