summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-08-14 14:23:02 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-08-14 14:23:02 -0500
commit730f45b3734e6cc14977942697696585823c57e7 (patch)
tree109ee32b49dc80e0b74ec4b69a5885da5b0a3f55
parentc03954896ec2ce03b5f3969867a7196ae3a443a2 (diff)
downloadimage-luarocks-730f45b3734e6cc14977942697696585823c57e7.tar.gz
image-luarocks-730f45b3734e6cc14977942697696585823c57e7.tar.bz2
image-luarocks-730f45b3734e6cc14977942697696585823c57e7.zip
Bypass luarock's check for liblua existance
-rwxr-xr-xinit7
1 files changed, 7 insertions, 0 deletions
diff --git a/init b/init
index c68ed42..1e3ea30 100755
--- a/init
+++ b/init
@@ -4,6 +4,9 @@ rc-service networking start
4 4
5apk add luarocks$maj.$min zip 5apk add luarocks$maj.$min zip
6ln -s /usr/bin/luarocks-$maj.$min /usr/local/bin/luarocks 6ln -s /usr/bin/luarocks-$maj.$min /usr/local/bin/luarocks
7# We can create the link, even if the file doesn't exist yet. When gcc links
8# it'll use the filename built into the binary, not the name of the link so
9# this is fine.
7ln -s /root/lua$maj$min.dll /root/liblua.dll 10ln -s /root/lua$maj$min.dll /root/liblua.dll
8 11
9luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") 12luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..")
@@ -18,3 +21,7 @@ rm -rf /root/image-mingw64
18luarocks config arch $arch 21luarocks config arch $arch
19luarocks config link_lua_explicitly true 22luarocks config link_lua_explicitly true
20luarocks config variables.LUA_INCDIR /root/$luaver/src 23luarocks config variables.LUA_INCDIR /root/$luaver/src
24# Downstream is responsible for selecting the lua51.dll, whatever it's compiled for
25luarocks config variables.LUA_LIBDIR /root
26# Luarocks checks for liblua.so and liblua.a but gcc looks for liblua.dll
27luarocks config variables.LUA_LIBDIR_OK true