diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-23 06:22:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-23 06:22:00 +0000 |
commit | 4c0a560cac00589060ef69638412d2607c2ababd (patch) | |
tree | a65ccd7593d2820bc05d9eae96f3fb831b950333 /ext/fiddle | |
parent | b2c4e778ba10619ba76b5b4c6d554a47cb6d41ef (diff) | |
download | ruby-4c0a560cac00589060ef69638412d2607c2ababd.tar.gz |
extconf.rb: try modversion ff pkg_config succeeded
* ext/fiddle/extconf.rb: when pkg_config failed, module version is
not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r-- | ext/fiddle/extconf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index edaba21f39..6da557bc79 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -5,8 +5,8 @@ require 'mkmf' if ! enable_config('bundled-libffi', false) dir_config 'libffi' - pkg_config("libffi") - ver = pkg_config("libffi", "modversion") + pkg_config("libffi") and + ver = pkg_config("libffi", "modversion") if have_header(ffi_header = 'ffi.h') true |