Add loongarch64 and riscv64 build failed
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn> (cherry picked from commit 17dff8cb690eeca0d0350a994a49095651e2863b)
This commit is contained in:
parent
9c855f9ec7
commit
bfdfd40b96
@ -1,6 +1,6 @@
|
|||||||
Name: openresty-pcre
|
Name: openresty-pcre
|
||||||
Version: 8.44
|
Version: 8.44
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Perl-compatible regular expression library for OpenResty
|
Summary: Perl-compatible regular expression library for OpenResty
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -59,6 +59,11 @@ This is the clang AddressSanitizer version.
|
|||||||
|
|
||||||
%patch99 -p1
|
%patch99 -p1
|
||||||
|
|
||||||
|
%ifarch loongarch64 riscv64
|
||||||
|
%_update_config_guess
|
||||||
|
%_update_config_sub
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
bash ./copy-dir.sh
|
bash ./copy-dir.sh
|
||||||
export CC="ccache gcc -fdiagnostics-color=always"
|
export CC="ccache gcc -fdiagnostics-color=always"
|
||||||
@ -67,7 +72,9 @@ export CC="ccache gcc -fdiagnostics-color=always"
|
|||||||
--prefix=%{pcre_prefix} \
|
--prefix=%{pcre_prefix} \
|
||||||
--libdir=%{pcre_prefix}/lib \
|
--libdir=%{pcre_prefix}/lib \
|
||||||
--disable-cpp \
|
--disable-cpp \
|
||||||
|
%ifnarch loongarch64 riscv64
|
||||||
--enable-jit \
|
--enable-jit \
|
||||||
|
%endif
|
||||||
--enable-utf \
|
--enable-utf \
|
||||||
--enable-unicode-properties
|
--enable-unicode-properties
|
||||||
|
|
||||||
@ -80,7 +87,9 @@ export CC="ccache gcc -fdiagnostics-color=always"
|
|||||||
--prefix=%{pcre_prefix_asan} \
|
--prefix=%{pcre_prefix_asan} \
|
||||||
--libdir=%{pcre_prefix_asan}/lib \
|
--libdir=%{pcre_prefix_asan}/lib \
|
||||||
--disable-cpp \
|
--disable-cpp \
|
||||||
|
%ifnarch loongarch64 riscv64
|
||||||
--enable-jit \
|
--enable-jit \
|
||||||
|
%endif
|
||||||
--enable-utf \
|
--enable-utf \
|
||||||
--enable-unicode-properties
|
--enable-unicode-properties
|
||||||
|
|
||||||
@ -131,6 +140,9 @@ rm -rf %{buildroot}
|
|||||||
%{pcre_prefix_asan}/include/*.h
|
%{pcre_prefix_asan}/include/*.h
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Mar 24 2022 wulei <wulei80@huawei.com> - 8.44-2
|
||||||
- Delete {?dist}
|
- Delete {?dist}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user