diff options
-rwxr-xr-x | init | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,9 @@ rc-service networking start | |||
4 | 4 | ||
5 | apk add luarocks$maj.$min zip | 5 | apk add luarocks$maj.$min zip |
6 | ln -s /usr/bin/luarocks-$maj.$min /usr/local/bin/luarocks | 6 | ln -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. | ||
7 | ln -s /root/lua$maj$min.dll /root/liblua.dll | 10 | ln -s /root/lua$maj$min.dll /root/liblua.dll |
8 | 11 | ||
9 | luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") | 12 | luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") |
@@ -18,3 +21,7 @@ rm -rf /root/image-mingw64 | |||
18 | luarocks config arch $arch | 21 | luarocks config arch $arch |
19 | luarocks config link_lua_explicitly true | 22 | luarocks config link_lua_explicitly true |
20 | luarocks config variables.LUA_INCDIR /root/$luaver/src | 23 | luarocks config variables.LUA_INCDIR /root/$luaver/src |
24 | # Downstream is responsible for selecting the lua51.dll, whatever it's compiled for | ||
25 | luarocks config variables.LUA_LIBDIR /root | ||
26 | # Luarocks checks for liblua.so and liblua.a but gcc looks for liblua.dll | ||
27 | luarocks config variables.LUA_LIBDIR_OK true | ||