Bug #3281
closedfail to build fiddle on Debian/lenny by default
Description
=begin
Hi Aaron --
fiddle cannot be built on Debian/lenny by default, because extconf.rb
fails to find ffi.h. It can be built by specifying the path:
./configure --with-libffi-include=/usr/include/i486-linux-gnu
But I think it should be built by default on Debian/lenny because it
is the supported platform.
The following patch works for me, but I don't know whether it works
on other platforms.
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index 87c5c9e..9e5536d 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -2,7 +2,7 @@ require 'mkmf'
:stopdoc:¶
-dir_config 'libffi'
+dir_config 'libffi', "/usr/include/i486-linux-gnu", "/usr/lib"
unless have_header('ffi.h')
if have_header('ffi/ffi.h')
--
Yusuke Endoh mame@tsg.ne.jp
=end