From c60b71bad1c2c7cf3c01384d5e7d2973677b328c Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 10 Jan 2023 16:19:42 +0800 Subject: [PATCH] add loongarch support for openresty-pcre --- openresty-pcre.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openresty-pcre.spec b/openresty-pcre.spec index e481c39..10ce29a 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 @@ -56,6 +56,10 @@ This is the clang AddressSanitizer version. %prep %setup -q -n pcre-%{version} +%ifarch loongarch64 +%_update_config_guess +%_update_config_sub +%endif %patch99 -p1 @@ -67,7 +71,9 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix} \ --libdir=%{pcre_prefix}/lib \ --disable-cpp \ +%ifnarch loongarch64 --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -80,7 +86,9 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix_asan} \ --libdir=%{pcre_prefix_asan}/lib \ --disable-cpp \ +%ifnarch loongarch64 --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -131,5 +139,8 @@ rm -rf %{buildroot} %{pcre_prefix_asan}/include/*.h %changelog +* Thu Jan 5 2023 Wenlong Zhang - 8.44-2 +- add loongarch support for openresty-pcre + * Thu Jul 22 2021 Fu Changjie 8.42-1 - Package init with openresty-pcre 8.42, without disable asan -- Gitee