From 17dff8cb690eeca0d0350a994a49095651e2863b Mon Sep 17 00:00:00 2001 From: yangchenguang Date: Mon, 14 Aug 2023 11:38:13 +0800 Subject: [PATCH] Add loongarch64 and riscv64 build failed Signed-off-by: yangchenguang --- openresty-pcre.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/openresty-pcre.spec b/openresty-pcre.spec index 617157b..6190afc 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} -- Gitee