!18 fix build error for loongarch64

From: @zhangwenlong01 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-05-15 06:05:46 +00:00 committed by Gitee
commit 2967859f90
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global need_bootstrap_set 0
%{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}}
%bcond_with doc
%ifarch %{arm} %{ix86} x86_64 ppc %{power64}
%ifarch %{arm} %{ix86} x86_64 ppc %{power64} loongarch64
%global __with_hipe 1
%endif
%global __with_emacs 1
@ -11,7 +11,7 @@
%global __with_wxwidgets 1
Name: erlang
Version: 23.3.4.9
Release: 3
Release: 4
Summary: General-purpose programming language and runtime environment
License: ASL 2.0
URL: https://www.erlang.org
@ -1474,7 +1474,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \
%dir %{_libdir}/erlang/lib/wx-*/
%{_libdir}/erlang/lib/wx-*/ebin
%{_libdir}/erlang/lib/wx-*/include
%ifnarch loongarch64
%{_libdir}/erlang/lib/wx-*/priv
%endif
%{_libdir}/erlang/lib/wx-*/src
%if %{with doc}
%{_mandir}/man3/gl.*
@ -1725,6 +1727,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \
%endif
%changelog
* Mon May 8 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 23.3.4.9-4
- fix build error for loongarch64
* Fri Feb 10 2023 yaoxin <yaoxin30@h-partners.com> - 23.3.4.9-3
- Fix build failed due to emacs update to 28.2