Skip to content

Instantly share code, notes, and snippets.

@greatwolf
Last active July 8, 2024 01:09
Show Gist options
  • Save greatwolf/8d8e8c57549166a779d0d918d9199932 to your computer and use it in GitHub Desktop.
Save greatwolf/8d8e8c57549166a779d0d918d9199932 to your computer and use it in GitHub Desktop.
Building and Packaging steps for Lua using MSYS/MinGW
-- Start MSYS/MinGW32 shell
msys64/msys2_shell.cmd -mingw32
-- Go into base directory of lua source files
cd /<driveletter>/lua-5.<version>
-- Compile Lua src with mingw
make mingw
-- Put final build output into proper structure using lua make's install target
make install INSTALL_TOP=../lua-$\(R\) INSTALL_BIN=$\(INSTALL_TOP\) TO_BIN="lua luac lua5*.dll"
-- Use 'echo' target to check make variables are correct eg.
make echo INSTALL_TOP=../lua-$\(R\) INSTALL_BIN=$\(INSTALL_TOP\) TO_BIN="lua luac lua5*.dll"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment