diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-09-23 15:31:19 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-23 15:31:19 -0500 |
| commit | cbd88cf79dd21911003efde5b9c9c3d476b5af8c (patch) | |
| tree | d2347095cd9832dfab612e9d677707eb6879d1b5 /init | |
| parent | ee696544d079d3fb1699a838e2dcb7e61bffda8a (diff) | |
| download | luarocks-packaging-cbd88cf79dd21911003efde5b9c9c3d476b5af8c.tar.gz luarocks-packaging-cbd88cf79dd21911003efde5b9c9c3d476b5af8c.tar.bz2 luarocks-packaging-cbd88cf79dd21911003efde5b9c9c3d476b5af8c.zip | |
Add a patch for luarocks.exe.c
Diffstat (limited to 'init')
| -rwxr-xr-x | init | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -3,13 +3,16 @@ | |||
| 3 | if [ -e libluajit.a ]; then | 3 | if [ -e libluajit.a ]; then |
| 4 | mv libluajit.a liblua.a | 4 | mv libluajit.a liblua.a |
| 5 | fi | 5 | fi |
| 6 | mkdir lua | ||
| 6 | tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1 | 7 | tar -xvzf lua-*.tar.gz --directory="lua" --strip-components=1 |
| 7 | mv hardcoded.lua luarocks/src/core/hardcoded.lua | 8 | mv luarocks-packaging/hardcoded.lua luarocks/src/luarocks/core/hardcoded.lua |
| 8 | cd luarocks | 9 | cd luarocks |
| 9 | mkdir build-binary | 10 | mkdir build-binary |
| 10 | patch -p1 -i /root/luarocks-packaging/all_in_one.patch | 11 | patch -i /root/luarocks-packaging/all_in_one.patch binary/all_in_one |
| 11 | LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one | 12 | LUAROCKS_CROSS_COMPILING=1 lua5.4 binary/all_in_one |
| 12 | 13 | patch -i /root/luarocks-packaging/luarocks.exe.c.patch build-binary/luarocks.exe.c | |
| 14 | gcc -o build-binary/luarocks.exe -Oz build-binary/luarocks.exe.c -I/root/lua/src /root/libbz2.a /root/libssl.a /root/libz.a /root/liblua.a -mconsole -mwindows -lm | ||
| 15 | cp build-binary/luarocks.exe /root | ||
| 13 | #cd luarocks/binary | 16 | #cd luarocks/binary |
| 14 | # mkdir -p build-windows-deps-cicd/lib | 17 | # mkdir -p build-windows-deps-cicd/lib |
| 15 | # cd build-windows-deps-cicd/lib | 18 | # cd build-windows-deps-cicd/lib |
