lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, May 16, 2014 at 4:55 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 2014-05-16 15:04 GMT+02:00 Andrew Starks <andrew.starks@trms.com>:
>> On Friday, May 16, 2014, Ulrich Schmidt <u.sch.zw@gmx.de> wrote:
>>> Am 16.05.2014 10:52, schrieb Thijs Schreijer:
>>>> But at least the defaults should work out-of-the-box, no?
>>> Everyone defines his private setup as "default".
>> Why have the default at all if the default is broken out of the box?
>
> It's not broken out of the box except on Windows. So what's new?
>
Windows has one nice feature in PATH/CPATH handling. You can use
relative paths from the executable location using the exclamation mark
"!". Eg. LUA_CPATH="!/../lib/lua/?.dll". This is especially helpful
for self contained installations, standalone Lua applications etc.
LuaDist[1] extends this functionality to other OSes so it does not
need to install into the system and can be moved around as needed.
Additionally you can set your own defaults in the CMake based build we
provide[2].

pd

[1] https://github.com/LuaDist/lua/blob/master/src/loadlib_rel.c#L144
[2] https://github.com/LuaDist/lua/blob/master/CMakeLists.txt#L36