On 26 July 2013 20:42, Γιάννης Γράβεζας <wizg...@gmail.com> wrote: > > Hi all, > > I'm investigating the use of the builtin build option but I see to have > come to a dead end. My setup is as follows: > > 1) I want to build a module and link it with lua lanes which is listed as > a dependency > in the luarock spec file. How do I locate it to add it as an external lib > for linking(Is there a shortcut for this?). I can include the needed header > in my project if that's not available but I need a path for linking. Excuse > me if I have missed something obvious here
I'm not sure if I'm understanding the issue. Do you need to locate the lanes.so file? Shouldn't it be possible just to do `require "lanes"` to load/use it? Do you want to call C functions from the lanes.so file directly from your C code? I guess you could access the Lanes API as Lua functions. > 2) I then want to build another module that needs the previous one as a > dependency(but no linking here). This should be easy but this module > uses(optionally but with great effect) simd intrinsincs on supported > platforms. I can probably resolve that in my code and default on sse2 on x86 > and neon on arm but a specific cflag for each is needed by gcc to enable it > to emit the instructions. Unfortunately platform-overrides use only the OS detection and not the arch variable, so there's no fully automated way to do that. You could set custom CFLAGS in your configuration files but as of now there's no way to specify per-arch flags in a rockspec using the builtin type. > So far I have been building it with cmake, are these configurations > possible with the builtin type of luarocks? Thank you in advance If the builtin type proves insufficient, you can keep using cmake integrated with LuaRocks. -- Hisham ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers