fix build error for loongarch64

Signed-off-by: Wenlong Zhang <zhangwenlong@loongson.cn>
This commit is contained in:
Wenlong Zhang 2023-05-09 12:49:36 +08:00
parent c505e00899
commit a0087b9c87

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