mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Check if the found pkg-config is usable actually
This commit is contained in:
parent
8e9ea4c202
commit
79d8a3159f
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@ require_relative 'base'
|
|||
require 'shellwords'
|
||||
|
||||
class TestMkmfPkgConfig < TestMkmf
|
||||
PKG_CONFIG = config_string("PKG_CONFIG") {|path| find_executable0(path)}
|
||||
PKG_CONFIG = config_string("PKG_CONFIG") do |path|
|
||||
find_executable0(path, "--version") {$?.success?}
|
||||
end
|
||||
|
||||
def setup
|
||||
super
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue