[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] amalgamated compilation for Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 12 Dec 2013 10:09:31 -0200
A tiny package for amalgamated compilation of Lua 5.2 is now available at
http://www.lua.org/extras/5.2/one.tar.gz
It includes three files: Makefile, README, and one.c, which was mentioned
here recently.
Here is the README:
---------------------------------------------------------------------
This code builds Lua as a single file. This reduces the number of public symbols
to the official C API and gives the compiler more room for optimization.
The Makefile builds three files: lua, luac, and liblua.o, which is the Lua
library as a single object file ready to be linked into your application.
Place this directory inside the src directory in the Lua distribution.
Then do "make" with a suitable target.
If you want to place this directory somewhere else, edit Makefile and change
the variable SRC to point to the src directory in the Lua distribution.
You can also give the value of SRC in the command line, as for instance in
make SRC=/tmp/lua-5.2.3/src macosx
---------------------------------------------------------------------
All feedback welcome. Enjoy.
--lhf