Add loongarch64 and riscv64 build failed

Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
(cherry picked from commit 17dff8cb690eeca0d0350a994a49095651e2863b)
This commit is contained in:
yangchenguang 2023-08-14 11:38:13 +08:00 committed by openeuler-sync-bot
parent 9c855f9ec7
commit bfdfd40b96

View File

@ -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 <yangchenguang@kylinsec.com.cn> - 8.44-3
- Fix loongarch64 and riscv64 build failed
* Thu Mar 24 2022 wulei <wulei80@huawei.com> - 8.44-2
- Delete {?dist}