|
|
||
|
I guess having to copy and modify the linit.c file is one method, but it is not as clean as it could be for the developer. It is fast and easy, but it requires the developer to modify files in the standard release.Was the intent for the developer to copy and/or modify linit.c for each project which required more or different libs?
Yes, if the user libraries are static. If you use lua.c then all you need to do is to link lua.o with your linit.o and of course with lualib.a. If you use your own main, then link with your linit.o and call luaL_openlibs (perhaps from inside a lua_cpcall, like lua.c does). That is why linit.c is a separate module, not a part of lua.c as it used to be. --lhf
I hope I have not upset anyone and I am sorry for the bandwidth usage.
Thanks --Keith