fix build error for loongarch64

Signed-off-by: Wenlong Zhang <zhangwenlong@loongson.cn>
This commit is contained in:
Wenlong Zhang 2023-03-04 15:06:32 +08:00
parent 2e85242414
commit b8aab143f8

View File

@ -8,7 +8,7 @@
Name: httpd
Summary: Apache HTTP Server
Version: 2.4.55
Release: 1
Release: 2
License: ASL 2.0
URL: https://httpd.apache.org/
Source0: https://archive.apache.org/dist/httpd/httpd-%{version}.tar.bz2
@ -185,6 +185,10 @@ sed 's/@MPM@/%{mpm}/' < $RPM_SOURCE_DIR/httpd.service.xml \
xmlto man ./httpd.service.xml
%build
%ifarch loongarch64
%_update_config_guess
%_update_config_sub
%endif
rm -rf srclib/{apr,apr-util,pcre}
autoheader && autoconf || exit 1
@ -501,6 +505,12 @@ exit $rv
%{_rpmconfigdir}/macros.d/macros.httpd
%changelog
* Sat Mar 4 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 2.4.55-2
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:fix build error for loongarch64
* Wed Feb 1 2023 chengyechun <chengyechun1@huawei.com> - 2.4.55-1
- Type:enhancement
- ID:NA