Subject: [ruby-ffi] Re: distributing c with gem |
From: mixtli |
Date: 10/23/11 8:38 PM |
To: ruby-ffi |
Wow, is it really that difficult? I'd have thought it'd just be a matter of setting up an extconf to build the extension and then telling ffi somehow about the ext/foo directory as a library path. On Oct 23, 1:52 pm, Jeremy Voorhis <jvoor...@gmail.com> wrote:
:) Jeremy On Sunday, October 23, 2011 at 2:49 AM, mixtli wrote:I've tried to crack this one as well. After learning that RubyGems will build extensions using configure-make-install in addition to extconf.rb, I have a branch of ruby-llvm that uses the autotools to build and manage a shared library, but unfortunately haven't released it yet because of incompatibilities between autoconf versions on Mac and Ubuntu. You can see my approach athttps://github.com/jvoorhis/ruby-llvm/tree/support-lib. If anyone is an autotools pro, or has a better idea, please help!I want to package up my c source with my gem, and call it from ffi. How can I tell ffi to use a library packaged with the gem instead of looking in the system libraries?