How does gem deal with extensions?

C

Chiyuan Zhang

Hi, all!

I'm building a gem that contains some C extensions. Here's
the directory hierarchy:

lib/
rmmseg.rb
rmmseg/
foo.rb
bar.rb
ext/
rmmseg/
extconf.rb
ext.c

After installing the gem. The ext.so get built in ext/rmmseg/ . It is OK
since the require path contains ext. I can require it using 'rmmseg/ext'.
However, I found the ext.so also gets copied to lib/ directory. What's the
purpose? Can I disable this? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top