On Wed, 25 Apr 2012 09:34:29 +0400
Alexander Gladysh <[email protected]> wrote:

> Hi, list!

Hi Alex!

> It would be nice if rocks could reuse C libraries from the rocks that
> they depend on.
> 
> Thoughts?

Sounds like a good idea to me. Try this:
https://github.com/Themroc/luarocks/tree/headers
and that:
https://github.com/downloads/Themroc/luarocks/headers-test.tar.bz2

The basics seem to work, however a bit of tweaking is needed:

cd headers-test
/usr/local/bin/luarocks --local make lua-inih-0.1-2.rockspec

cd ~/.luarocks/lib/lua/5.1
export LD_LIBRARY_PATH=`pwd`":$LD_LIBRARY_PATH"
ln -s inih.so libinih.so
cd -

/usr/local/bin/luarocks --local make ini_test-1.0-1.rockspec

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to