Created attachment 831 [details] lua patch This patch includes a shared library patch (based on a patch from the debian repository). It also adds a config option to build without readline and ncurses, and a config option to choose if the compiler and interpreter should be installed. It applies to the current git repository.
You're probably missing a patch in your patch file since normally lua doesn't build shared libs (a patch to lua's Makefile to be precise), maybe you forgot to include it?
Created attachment 845 [details] lua patch fixed patch: now created with git format-patch
Could you add -DLUA_USE_DLOPEN to MYCFLAGS? That way we'll enable the extension loader for shared objects which we most definitely want. Otherwise it's working good now for me.
Created attachment 857 [details] lua patch with -DLUA_USE_DLOPEN Patch with -DLUA_USE_DLOPEN added.
Move milestone to 2010.05 since enhancements will not be handled before the release of 2010.02.
Created attachment 1597 [details] Migrate lua to gentargets and improve it Convert the lua package to gentargets. It also enables new options to install selectively the lua interpreter, compiler and shared library. This allows us to build lua modules and packages for them in the future among other things. It defaults to build just the static liblua, users have to enable extra functionality now (interpreter, compiler, shared liblua in target).
Thanks, committed. I've fixed up Config.in though, as lua/luac dynamically links to liblua.so.*, so they need to select it.
Sure about that? lua/luac just link to liblua.so only when it's built. When the SHARED option is disabled liblua.so isn't built so they just link statically against liblua.a ...