On 25 May 2015 at 01:36, Dimitris Papavasiliou <dpapa...@gmail.com> wrote: > Hi, > > I'm trying to create a rockspec for a project, which provides a REPL > prompt, both as a Lua module, as well as a standalone binary. I'm using > the Makefile backend, as the built-in backend seems incapable of > building anything but shared libraries, but I can't seem to find a way > to pass the actual Lua library name to the Makefile (e.g. pass lua5.2 > via some variable to the Makefile, so that I can then specify -llua5.2 > to the linker). > > Since LuaRocks provides Lua include and library directories, according > to the version it was configured with, I suppose it must somehow be able > to pass the lua library name as well. The only likely variable I can > find in the documentation is LUALIB, but this is not defined in my > installation and a glance at cfg.lua seems to indicate it's only > available on Windows. > > Is there some way I can distribute my binary together with my module? > The notion seems to be supported as there is the INST_BINDIR variable to > point to the proper target directory. > > Any help would be greatly appreciated, > Dimitris
Have you seen https://github.com/keplerproject/luarocks/wiki/Creating-a-Makefile-that-plays-nice-with-LuaRocks ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers