1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/fiddle/extconf.rb: use pkg_config to find ffi.h.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2010-06-15 03:14:34 +00:00
parent 895b0d4cdb
commit 423b4d815f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Jun 15 12:09:00 2010 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/fiddle/extconf.rb: use pkg_config to find ffi.h.
Tue Jun 15 02:31:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, common.mk (clean-ext, clean-enc): clean up cleaning

View file

@ -4,7 +4,7 @@ require 'mkmf'
dir_config 'libffi'
unless have_header('ffi.h')
unless pkg_config("libffi") and have_header('ffi.h')
if have_header('ffi/ffi.h')
$defs.push(format('-DUSE_HEADER_HACKS'))
else