From 631ed52c51d5c9050b0a8b500846a5a36f0d8f25 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 10 Jan 2023 17:28:57 +0800 Subject: [PATCH] fix build error for loongarch64 --- luarocks.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/luarocks.spec b/luarocks.spec index ffbcfb9..d989985 100644 --- a/luarocks.spec +++ b/luarocks.spec @@ -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 - 3.5.0-3 +- fix build error for loongarch64 + * Thu Mar 24 2022 liyanan - 3.5.0-2 - remove %dist