From 3ccd6c0aab516bb1ca8402b985db83a90dbd0eb2 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 15 Jun 2010 16:43:46 +0000 Subject: * ext/fiddle/extconf.rb: check ffi.h even when pkg-config succeeded. On Debian/lenny, which is a "supported" platform, ffi.h is installed in /usr/include/i486-linux-gnu/. This causes build error when using gcc whose target is not i486-linux-gnu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/fiddle/extconf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/fiddle') diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index c80a1f9a83..dcc2c43cfd 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -4,7 +4,8 @@ require 'mkmf' dir_config 'libffi' -unless pkg_config("libffi") or have_header('ffi.h') +pkg_config("libffi") +unless have_header('ffi.h') if have_header('ffi/ffi.h') $defs.push(format('-DUSE_HEADER_HACKS')) else -- cgit v1.2.3