fix build error for loongarch64

This commit is contained in:
Wenlong Zhang 2023-01-10 17:28:57 +08:00
parent c9ffee6912
commit 631ed52c51

View File

@ -8,7 +8,7 @@
Name: luarocks
Version: 3.5.0
Release: 2
Release: 3
Summary: A deployment and management system for Lua modules
License: MIT
@ -45,8 +45,12 @@ repositories, and multiple local rocks trees.
%build
./configure \
--prefix=%{_prefix} \
%if 0%(test `uname -m` == "loongarch64" && echo 1)
--lua-version=%{lua_version}
%else
--lua-version=%{lua_version} \
--with-lua=%{openresty_luajit}
%endif
%make_build
%install
@ -71,6 +75,9 @@ mkdir -p %{buildroot}%{_prefix}/lib/luarocks/rocks-%{lua_version}
%changelog
* Thu Jan 5 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 3.5.0-3
- fix build error for loongarch64
* Thu Mar 24 2022 liyanan <liyanan32@huawei.com> - 3.5.0-2
- remove %dist