seattlerb / rubyinline

297 stars 42 forks source link

Fix arch header directoy with Ruby >= 2.0 #37

Closed aurelj closed 9 years ago

aurelj commented 9 years ago

On Debian, the arch specific headear files are available in: /usr/include/x86_64-linux-gnu/ruby-2.1.0 while the current code is looking for: /usr/include/ruby-2.1.0/x86_64-linux-gnu This prevents the compiler to find ruby/config.h.

Since Ruby 2.0, RbConfig::CONFIG['rubyarchhdrdir'] contains the proper arch header directory, so use it in priority when available.

zenspider commented 9 years ago

Done. Thanks! This will be released soon!