Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Created February 19, 2014 20:31
Show Gist options
  • Save nddrylliog/9100856 to your computer and use it in GitHub Desktop.
Save nddrylliog/9100856 to your computer and use it in GitHub Desktop.
luarocks configs for mingw + osx cross-compiles. Create empty folders for each and put those in etc/luarocks/config.lua
variables = {
CC = "i686-apple-darwin11-gcc",
LD = "i686-apple-darwin11-gcc -L/usr/i686-apple-darwin11/usr/lib -lluajit-5.1",
CFLAGS = "-I/usr/i686-apple-darwin11/usr/include/luajit-2.0"
}
arch = "osx-x86"
lib_extension = "dylib"
variables = {
CC = "i686-w64-mingw32-gcc",
LD = "i686-w64-mingw32-gcc -L/home/amos/Dev/dummyprefix-i686-w64-mingw32/lib -llua51",
CFLAGS = "-I/home/amos/Dev/dummyprefix-i686-w64-mingw32/include/luajit-2.0"
}
arch = "win32-x86"
lib_extension = "dll"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment