summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fiddle/extconf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index edaba21..6da557b 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