!11 [sync] PR-9: 增加龙芯和rsicv架构的编译支持

From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2023-09-21 12:28:03 +00:00 committed by Gitee
commit 80d00d05b3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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}