diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-08-14 14:23:02 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-08-14 14:23:02 -0500 |
| commit | 730f45b3734e6cc14977942697696585823c57e7 (patch) | |
| tree | 109ee32b49dc80e0b74ec4b69a5885da5b0a3f55 /init | |
| parent | c03954896ec2ce03b5f3969867a7196ae3a443a2 (diff) | |
| download | image-luarocks-730f45b3734e6cc14977942697696585823c57e7.tar.gz image-luarocks-730f45b3734e6cc14977942697696585823c57e7.tar.bz2 image-luarocks-730f45b3734e6cc14977942697696585823c57e7.zip | |
Bypass luarock's check for liblua existance
Diffstat (limited to 'init')
| -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 | ||
